diff --git a/Software/USER_SETTINGS.h b/Software/USER_SETTINGS.h index ab97689d..8b4c155a 100644 --- a/Software/USER_SETTINGS.h +++ b/Software/USER_SETTINGS.h @@ -101,7 +101,7 @@ //#define LOG_CAN_TO_SD //Enable this line to log incoming/outgoing CAN & CAN-FD messages to SD card (WARNING, raises CPU load, do not use for production) //#define DEBUG_VIA_USB //Enable this line to have the USB port output serial diagnostic data while program runs (WARNING, raises CPU load, do not use for production) //#define DEBUG_VIA_WEB //Enable this line to log diagnostic data while program runs, which can be viewed via webpage (WARNING, slightly raises CPU load, do not use for production) -#define DEBUG_CAN_DATA //Enable this line to print incoming/outgoing CAN & CAN-FD messages to USB serial (WARNING, raises CPU load, do not use for production) +//#define DEBUG_CAN_DATA //Enable this line to print incoming/outgoing CAN & CAN-FD messages to USB serial (WARNING, raises CPU load, do not use for production) /* CAN options */ //#define CAN_ADDON //Enable this line to activate an isolated secondary CAN Bus using add-on MCP2515 chip (Needed for some inverters / double battery) diff --git a/Software/src/devboard/webserver/webserver.cpp b/Software/src/devboard/webserver/webserver.cpp index f6eb4289..a4a12cf2 100644 --- a/Software/src/devboard/webserver/webserver.cpp +++ b/Software/src/devboard/webserver/webserver.cpp @@ -31,7 +31,7 @@ bool ota_active = false; const char get_firmware_info_html[] = R"rawliteral(%X%)rawliteral"; -String importedLogs = ""; // Store the uploaded file contents in RAM /WARNING THIS MIGHT GO BOOM +String importedLogs = ""; // Store the uploaded file contents in RAM CAN_frame currentFrame = {.FD = true, .ext_ID = false, .DLC = 64, .ID = 0x12F, .data = {0}}; @@ -76,9 +76,6 @@ void canReplayTask(void* param) { float lastTimestamp = 0.0; for (size_t i = 0; i < messages.size(); i++) { - esp_task_wdt_reset(); // Manually reset watchdog - vTaskDelay(1); // Yield control to FreeRTOS - String line = messages[i]; line.trim(); if (line.length() == 0) @@ -134,7 +131,6 @@ void canReplayTask(void* param) { (datalayer.system.info.can_replay_interface == CANFD_ADDON_MCP2518); transmit_can_frame(¤tFrame, datalayer.system.info.can_replay_interface); - vTaskDelay(1); // Yield control after sending frame } } while (datalayer.system.info.loop_playback);