Explorar el Código

Catch exception on 'expected_count' < 0

This shouldn't happend as the setting mode sets the lower bound to 1.
0w0mewo hace 1 año
padre
commit
8834bfafa5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      views/countdown_view.c

+ 1 - 0
views/countdown_view.c

@@ -94,6 +94,7 @@ static void countdown_timer_view_on_draw(Canvas* canvas, void* ctx) {
 
     int32_t count = model->count;
     int32_t expected_count = model->saved_count_setting;
+    furi_check(expected_count > 0, "expected_count < 0");
 
     CountDownViewSelect select = model->select;