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

  • Committer: Tim Marston
  • Date: 2012-03-21 19:37:33 UTC
  • Revision ID: tim@ed.am-20120321193733-29euxt0t0h9dwsj3
added .dep directories to bzrignore

Show diffs side-by-side

added added

removed removed

62
62
        }
63
63
}
64
64
 
 
65
 
65
66
static void reset_messages()
66
67
{
67
68
        Text::reset_message( 0, Text::MODE_TOP | Text::MODE_ALL );
104
105
        switch( _item ) {
105
106
        case TIME_SET_IDX:
106
107
                if( _part == 0 && flash )
107
 
                        str0.print( ( Time::get_hours() % 12 ) < 10? " " : "  " );
 
108
                        str0.print( "  " );
108
109
                else
109
 
                        str0.format( "%d", Time::get_hours() % 12 );
 
110
                        str0.format( "%2d", Time::get_hours() % 12 );
110
111
                str0.print( ':' );
111
112
                if( _part == 1 && flash )
112
113
                        str0.print( "  " );
117
118
                        str0.print( "  " );
118
119
                else
119
120
                        str0.format( "%02d", Time::get_seconds() );
120
 
                str0.print( ' ' );
121
121
                if( _part == 0 && flash )
122
122
                        str0.print( "  " );
123
123
                else