Skip to content

Commit 02473c8

Browse files
committed
app: calculator - fix exit of main
1 parent 5c038bd commit 02473c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/calculator/main/calculator.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,8 @@ void app_main(void) {
129129
lv_obj_add_event_cb(btnm, btn_event_cb, LV_EVENT_VALUE_CHANGED, NULL);
130130

131131
bsp_display_backlight_on();
132+
133+
while (1) {
134+
vTaskDelay(pdMS_TO_TICKS(1000)); // Add a small delay to prevent watchdog issues
135+
}
132136
}

0 commit comments

Comments
 (0)