/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: 2013-03-31 17:07:11 UTC
  • Revision ID: tim@ed.am-20130331170711-okfhn3wx9y0eo99a
updated the schematic to increase minimum font size

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
 
 
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
}