/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 01:01:54 UTC
  • Revision ID: tim@ed.am-20120310010154-lv041mt4275k5jxo
removed most OOP/inheritance crap, saved loads of space!

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
 
36
38
        PString str0( Text::_messages[ 0 ], MESSAGE_LEN );
37
39
//      PString str1( Text::_messages[ 1 ], MESSAGE_LEN );
38
40
        str0.begin();
54
56
//              }
55
57
//              break;
56
58
//      case 1:
57
 
                str0.format( "%d%s %s, %d", Time::get_day(),
58
 
                                        Time::get_day_suffix(),
59
 
                                        Time::get_month_name(), Time::get_year() );
 
59
                str0.format( "%d%s %s, %d", time.get_day(),
 
60
                                        time.get_day_suffix(),
 
61
                                        time.get_month_name(), time.get_year() );
60
62
                Text::set_message( 0, str0 );
61
63
//              Text::set_message( 1, str1 );
62
64
                if( !update ) {
102
104
 
103
105
        Text::reset();
104
106
        set_message( false );
105
 
 
106
 
        _flavour = 0;
107
107
}