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

  • Committer: Tim Marston
  • Date: 2012-03-10 12:56:55 UTC
  • Revision ID: tim@ed.am-20120310125655-z72qh4bqou2byi2r
added frame reset code and inited minor mode flavours on mode activation

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
static void set_message( bool update )
35
35
{
36
 
        Time &time = Time::get_instance();
37
 
 
38
36
        PString str0( Text::_messages[ 0 ], MESSAGE_LEN );
39
37
//      PString str1( Text::_messages[ 1 ], MESSAGE_LEN );
40
38
        str0.begin();
56
54
//              }
57
55
//              break;
58
56
//      case 1:
59
 
                str0.format( "%d%s %s, %d", time.get_day(),
60
 
                                        time.get_day_suffix(),
61
 
                                        time.get_month_name(), time.get_year() );
 
57
                str0.format( "%d%s %s, %d", Time::get_day(),
 
58
                                        Time::get_day_suffix(),
 
59
                                        Time::get_month_name(), Time::get_year() );
62
60
                Text::set_message( 0, str0 );
63
61
//              Text::set_message( 1, str1 );
64
62
                if( !update ) {
104
102
 
105
103
        Text::reset();
106
104
        set_message( false );
 
105
 
 
106
        _flavour = 0;
107
107
}