diff --git a/rgbyteclock.c b/rgbyteclock.c index 610fdd6..1a259ae 100644 --- a/rgbyteclock.c +++ b/rgbyteclock.c @@ -345,6 +345,9 @@ int8_t show_anim_ok( uint32_t now, uint32_t animation_start ) { } if( t_diff > 1000 ) { + for( int i=0; i<12; i++ ) { + led_set( i, 0x00, 0x00, 0x00); + } return 1; } return 0; @@ -370,6 +373,9 @@ int8_t show_anim_nok( uint32_t now, uint32_t animation_start ) { } if( t_diff > 1000 ) { + for( int i=0; i<12; i++ ) { + led_set( i, 0x00, 0x00, 0x00); + } return 1; } return 0; @@ -396,6 +402,9 @@ int8_t show_anim_win( uint32_t now, uint32_t animation_start ) { } if( t_diff > 2000 ) { + for( int i=0; i<12; i++ ) { + led_set( i, 0x00, 0x00, 0x00); + } return 1; } return 0;