From 7109ff18b862d02e0ab88add14cf24fd0c3f59f4 Mon Sep 17 00:00:00 2001 From: doudar Date: Tue, 23 Jan 2024 18:43:02 -0600 Subject: [PATCH] reverted stack size settings --- include/settings.h | 10 +++++----- src/Main.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/settings.h b/include/settings.h index 8fef848d..89564c4a 100644 --- a/include/settings.h +++ b/include/settings.h @@ -297,12 +297,12 @@ #define BLE_RECONNECT_SCAN_DURATION 15 //Task Stack Sizes -#define MAIN_STACK 3500 -#define ERG_STACK 3500 -#define HTTP_STACK 5000 -#define BLE_COMM_STACK 5000 +#define MAIN_STACK 4500 +#define ERG_STACK 6500 +#define HTTP_STACK 6000 +#define BLE_COMM_STACK 6000 #define BLE_CLIENT_STACK 5000 -#define STEPPER_STACK 2000 +#define STEPPER_STACK 1700 // Uncomment to enable stack size debugging info // #define DEBUG_STACK diff --git a/src/Main.cpp b/src/Main.cpp index 8b67326e..fca3ef40 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -35,10 +35,10 @@ Boards boards; Board currentBoard; ///////////// Initialize the Config ///////////// -SS2K *ss2k = new SS2K; -userParameters *userConfig = new userParameters; -RuntimeParameters *rtConfig = new RuntimeParameters; -physicalWorkingCapacity *userPWC = new physicalWorkingCapacity; +SS2K *ss2k = SS2K; +userParameters *userConfig = userParameters; +RuntimeParameters *rtConfig = RuntimeParameters; +physicalWorkingCapacity *userPWC = physicalWorkingCapacity; ///////////// Log Appender ///////////// UdpAppender udpAppender; @@ -206,7 +206,7 @@ void SS2K::maintenanceLoop(void *pvParameters) { userConfig->saveToLittleFS(); userPWC->saveToLittleFS(); } - + if ((millis() - intervalTimer) > 2003) { // add check here for when to restart WiFi // maybe if in STA mode and 8.8.8.8 no ping return? // ss2k->restartWifi();