patch tiny graphic glitches

This commit is contained in:
daniel steuer 2014-03-16 01:01:06 +01:00
parent c44dcf52b9
commit 0917b029e3

View File

@ -345,6 +345,9 @@ int8_t show_anim_ok( uint32_t now, uint32_t animation_start ) {
} }
if( t_diff > 1000 ) { if( t_diff > 1000 ) {
for( int i=0; i<12; i++ ) {
led_set( i, 0x00, 0x00, 0x00);
}
return 1; return 1;
} }
return 0; return 0;
@ -370,6 +373,9 @@ int8_t show_anim_nok( uint32_t now, uint32_t animation_start ) {
} }
if( t_diff > 1000 ) { if( t_diff > 1000 ) {
for( int i=0; i<12; i++ ) {
led_set( i, 0x00, 0x00, 0x00);
}
return 1; return 1;
} }
return 0; return 0;
@ -396,6 +402,9 @@ int8_t show_anim_win( uint32_t now, uint32_t animation_start ) {
} }
if( t_diff > 2000 ) { if( t_diff > 2000 ) {
for( int i=0; i<12; i++ ) {
led_set( i, 0x00, 0x00, 0x00);
}
return 1; return 1;
} }
return 0; return 0;