diff --git a/CO2_Gadget_Menu.h b/CO2_Gadget_Menu.h index 42241bac..3cb7d161 100644 --- a/CO2_Gadget_Menu.h +++ b/CO2_Gadget_Menu.h @@ -1175,7 +1175,7 @@ bool menuEntryCharacterReceived() { void menuLoop() { if (isDownloadingBLE) return; // Do not run the menu if downloading BLE - + if (mustInitMenu) { initMenu(); #ifdef DEBUG_ARDUINOMENU @@ -1223,13 +1223,15 @@ void menuLoop() { } #endif - // Workaround: Try to avoid Serial TX buffer full if it's not connected to a receiving device +#ifdef CONFIG_IDF_TARGET_ESP32S3 + // Workaround: Try to avoid Serial TX buffer full if it's not connected to a receiving device. Looks like the issue is just with ESP32 S3 if ((Serial.availableForWrite() < 100) || (!workingOnExternalPower)) { Serial.println("[MENU] Serial TX buffer full or not connected to a receiving device. Restarting Serial..."); Serial.end(); delay(10); Serial.begin(115200); } +#endif if (activeWIFI) { activeMQTTMenu[0].enable(); diff --git a/platformio.ini b/platformio.ini index 4989d865..93dfe40e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -77,7 +77,7 @@ build_flags = '-DWIFI_PW_CREDENTIALS=""' -D MQTT_BROKER_SERVER="\"192.168.1.145"\" -D CO2_GADGET_VERSION="\"0.12."\" - -D CO2_GADGET_REV="\"061-development"\" + -D CO2_GADGET_REV="\"062-development"\" -DCACHE_DIR=".pio/build" -DBUZZER_PIN=2 ; ESP32 pin GPIO13 connected to piezo buzzer -DNEOPIXEL_PIN=26 ; Pinnumber for button for down/next and back / exit actions