/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/propeller-clock.cc

  • Committer: Tim Marston
  • Date: 2012-03-10 01:01:54 UTC
  • Revision ID: tim@ed.am-20120310010154-lv041mt4275k5jxo
removed most OOP/inheritance crap, saved loads of space!

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
        static int event_times[] = { 5, 500, 4000, 0 };
283
283
        _button.set_event_times( event_times );
284
284
 
285
 
        // get time from RTC
286
 
        Time::init();
287
 
 
288
285
        // activate the minor mode
289
286
        switch( _major_mode ) {
290
287
        case MAIN_MODE_IDX: activate_minor_mode(); break;
309
306
                calculate_segment_times();
310
307
 
311
308
                // keep track of time
312
 
                Time::update();
 
309
                Time &time = Time::get_instance();
 
310
                time.update();
313
311
 
314
312
                // perform button events
315
313
                do_button_events();