Heap memory improvements

This commit is contained in:
Gunnar Skjold
2026-03-26 15:14:59 +01:00
parent 9609e9fb85
commit 048bd474e4
16 changed files with 135 additions and 113 deletions

View File

@@ -96,12 +96,12 @@ private:
bool uploading = false;
File file;
bool performRestart = false;
String priceRegion = "";
String priceCurrency = "";
char priceRegion[8] = {};
char priceCurrency[4] = {};
#if defined(AMS2MQTT_FIRMWARE_URL)
String customFirmwareUrl = AMS2MQTT_FIRMWARE_URL;
char customFirmwareUrl[128] = AMS2MQTT_FIRMWARE_URL;
#else
String customFirmwareUrl;
char customFirmwareUrl[128] = {};
#endif
char* buf;