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

  • Committer: Tim Marston
  • Date: 2012-05-17 19:17:05 UTC
  • Revision ID: tim@ed.am-20120517191705-3d28d50tw8w51v7g
removed 5V regulator from scematic and replaced the connection to the regulator
on the Arduino -- ecause that's what we should be using and out seperate
regulator is only working around a fault in out arduino

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
}
140
140
 
141
141
 
142
 
void Text::post_draw()
143
 
{
144
 
        _do_draw_reset = false;
145
 
}
146
 
 
147
 
 
148
142
void Text::draw( int message_num, int segment )
149
143
{
150
144
        TextRenderer::buffer_in_use();
151
145
 
152
146
        // perform a mid-frame reset, as necessary
153
 
        if( _do_draw_reset ) // && segment > NUM_SEGMENTS / 2 )
154
 
        {
 
147
        if( _do_draw_reset && segment > NUM_SEGMENTS / 2 ) {
 
148
                _do_draw_reset = false;
 
149
 
155
150
                // reset message param?
156
151
                if( _message_recalc_flags & ( 1 << message_num ) ) {
157
152
                        _message_recalc_flags &= ~( 1 << message_num );