/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: edam
  • Date: 2012-03-12 15:22:57 UTC
  • Revision ID: tim@ed.am-20120312152257-gb30ihjxq8jb0lss
added newline

Show diffs side-by-side

added added

removed removed

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
}