summaryrefslogtreecommitdiff
path: root/apps/plugins/clock/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/clock/clock.c')
-rw-r--r--apps/plugins/clock/clock.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugins/clock/clock.c b/apps/plugins/clock/clock.c
index e9985a13ab..bb42b51430 100644
--- a/apps/plugins/clock/clock.c
+++ b/apps/plugins/clock/clock.c
@@ -174,16 +174,17 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter){
174 break; 174 break;
175 175
176 default: 176 default:
177 redraw=false;
178 if(rb->default_event_handler_ex(button, cleanup, NULL) 177 if(rb->default_event_handler_ex(button, cleanup, NULL)
179 == SYS_USB_CONNECTED) 178 == SYS_USB_CONNECTED)
180 return PLUGIN_USB_CONNECTED; 179 return PLUGIN_USB_CONNECTED;
180 if(time.second != last_second){
181 last_second=time.second;
182 redraw=true;
183 }else
184 redraw=false;
181 break; 185 break;
182 } 186 }
183 if(time.second != last_second){ 187
184 last_second=time.second;
185 redraw=true;
186 }
187 if(redraw){ 188 if(redraw){
188 clock_draw_set_colors(); 189 clock_draw_set_colors();
189 FOR_NB_SCREENS(i) 190 FOR_NB_SCREENS(i)