/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/minor_mode.cc

  • Committer: edam
  • Date: 2012-02-23 20:18:22 UTC
  • Revision ID: edam@waxworlds.org-20120223201822-dno5n4fwvd35izq9
changed 12-tick to a double tick, added CLOCK_SHIFT to align face and fixed hour-hand

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "minor_mode.h"
2
 
 
3
 
 
4
 
MinorMode::MinorMode( int num_flavours )
5
 
    :
6
 
        _num_flavours( num_flavours )
7
 
{
8
 
}
9
 
 
10
 
 
11
 
void MinorMode::activate()
12
 
{
13
 
        _flavour = 0;
14
 
}
15
 
 
16
 
 
17
 
void MinorMode::next_flavour()
18
 
{
19
 
        if( ++_flavour >= _num_flavours )
20
 
                _flavour = 0;
21
 
}