/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/modes/switcher_major_mode.cc

  • Committer: Tim Marston
  • Date: 2012-05-18 14:40:04 UTC
  • Revision ID: tim@ed.am-20120518144004-uuz2zrjmyr78wqd5
updated emacs compile command and readjusted clock shift

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "digital_clock_mode.h"
26
26
#include "info_mode.h"
27
27
#include "test_pattern_mode.h"
28
 
#include "text.h"
29
 
#include "common.h"
 
28
#include "../text.h"
 
29
#include "../common.h"
30
30
 
31
31
 
32
32
SwitcherMajorMode::SwitcherMajorMode()
62
62
 
63
63
void SwitcherMajorMode::activate()
64
64
{
 
65
        // reset text
 
66
        Text::reset();
 
67
        leds_off();
 
68
 
65
69
        _mode = 0;
66
70
        _modes[ _mode ]->activate();
67
71
}
86
90
        // inc mode
87
91
        if( !_modes[ ++_mode ] ) _mode = 0;
88
92
 
 
93
        // reset text
 
94
        Text::reset();
 
95
        leds_off();
 
96
 
89
97
        _modes[ _mode ]->activate();
90
98
}