/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:25:02 UTC
  • Revision ID: tim@ed.am-20120310012502-v0jwfjghpp63un6n
removed time singleton, not cause it saved much space, but cause i don't want singletons in this project!

Show diffs side-by-side

added added

removed removed

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
 
285
288
        // activate the minor mode
286
289
        switch( _major_mode ) {
287
290
        case MAIN_MODE_IDX: activate_minor_mode(); break;
306
309
                calculate_segment_times();
307
310
 
308
311
                // keep track of time
309
 
                Time &time = Time::get_instance();
310
 
                time.update();
 
312
                Time::update();
311
313
 
312
314
                // perform button events
313
315
                do_button_events();