Skip to content

Commit

Permalink
Repair USB Serial in S3 boards with espressif v.2.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
Coscolin committed May 6, 2024
1 parent 99f23b6 commit 8145d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CO2_Gadget_Menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1225,12 +1225,13 @@ void menuLoop() {

#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)) {
/* 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) {
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ build_flags =
-DFLAVOUR="\"ESP32 OLED"\"

[env:TDISPLAY_S3]
platform = espressif32 @ 6.6.0
platform = https://github.com/platformio/platform-espressif32.git
board = lilygo-t-display-s3
framework = ${common_env_data.framework}
monitor_filters = ${common_env_data.monitor_filters}
Expand Down

0 comments on commit 8145d70

Please sign in to comment.