/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 18:29:50 UTC
  • Revision ID: tim@ed.am-20120518182950-t85bn9a21n72uzm8
text messages are now individually enabled and draw()n automatically

Show diffs side-by-side

added added

removed removed

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
 
 
69
65
        _mode = 0;
70
66
        _modes[ _mode ]->activate();
71
67
}
90
86
        // inc mode
91
87
        if( !_modes[ ++_mode ] ) _mode = 0;
92
88
 
93
 
        // reset text
94
 
        Text::reset();
95
 
        leds_off();
96
 
 
97
89
        _modes[ _mode ]->activate();
98
90
}