From 0179b767e9a42530e0bb4bcc64b0824388010da3 Mon Sep 17 00:00:00 2001 From: pulipakaa24 Date: Mon, 12 Jan 2026 17:39:52 -0600 Subject: [PATCH] increase stack size for wake timer --- src/main.cpp | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a71cb32..75f242f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,43 +34,9 @@ void mainApp() { setupAndCalibrate(); - xTaskCreate(wakeTimer, "wakeTimer", 1024, NULL, 5, &wakeTaskHandle); + xTaskCreate(wakeTimer, "wakeTimer", 2048, NULL, 5, &wakeTaskHandle); mainEventLoop(); - - // TOMORROW!!! - // statusResolved = false; - - // // Main loop - // while (1) { - // // websocket disconnect/reconnect handling - // if (statusResolved) { - // if (!connected) { - // printf("Disconnected! Beginning setup loop.\n"); - // stopSocketIO(); - // setupLoop(); - // } - // else printf("Reconnected!\n"); - // statusResolved = false; - // } - - // if (clearCalibFlag) { - // calib.clearCalibrated(); - // emitCalibStatus(false); - // clearCalibFlag = false; - // } - // if (savePosFlag) { - // servoSavePos(); - // savePosFlag = false; - - // // Send position update to server - // uint8_t currentAppPos = calib.convertToAppPos(topEnc->getCount()); - // emitPosHit(currentAppPos); - - // printf("Sent pos_hit: position %d\n", currentAppPos); - // } - // vTaskDelay(pdMS_TO_TICKS(100)); - // } } void pm_init() {