From 7af1279b555f86739252b39fd6e35c544d8ab5d8 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 7 Jun 2022 12:52:44 +0200 Subject: [PATCH] Add tasmota32s2usb --- platformio_override_sample.ini | 5 +++-- platformio_tasmota_env32.ini | 8 ++++++++ tasmota/tasmota.ino | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/platformio_override_sample.ini b/platformio_override_sample.ini index f2b696b8a..cd89360e0 100644 --- a/platformio_override_sample.ini +++ b/platformio_override_sample.ini @@ -11,7 +11,7 @@ [platformio] ; For best Gitpod performance remove the ";" in the next line. Needed Platformio files are cached and installed at first run ;core_dir = .platformio -; For unrelated compile errors with Windows it can help to shorten Platformio project path +; For unrelated compile errors with Windows it can help to shorten Platformio project path ;workspace_dir = c:\.pio ; *** Build/upload environment @@ -38,6 +38,7 @@ default_envs = ; tasmota32c3 ; tasmota32c3usb ; tasmota32s2 +; tasmota32s2usb ; tasmota32s3 ; tasmota32s3usb ; tasmota32-odroidgo @@ -140,7 +141,7 @@ lib_extra_dirs = ${library.lib_extra_dirs} lib/libesp32_lvgl ; *** uncomment the following line if you use Bluetooth or Apple Homekit in a Tasmota32 build. Reduces compile time ; lib/libesp32_div -; *** uncomment the following line if you use Epaper driver epidy in your Tasmota32 build. Reduces compile time +; *** uncomment the following line if you use Epaper driver epidy in your Tasmota32 build. Reduces compile time ; lib/libesp32_eink diff --git a/platformio_tasmota_env32.ini b/platformio_tasmota_env32.ini index a13344c74..901cb12f1 100644 --- a/platformio_tasmota_env32.ini +++ b/platformio_tasmota_env32.ini @@ -200,6 +200,14 @@ lib_ignore = Micro-RTSP epdiy +[env:tasmota32s2usb-safeboot] +extends = env:tasmota32s2-safeboot +board = esp32s2usb + +[env:tasmota32s2usb] +extends = env:tasmota32s2 +board = esp32s2usb + [env:tasmota32s3-safeboot] extends = env:tasmota32_base board = esp32s3 diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index 3232fccec..d84aa000c 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -436,7 +436,7 @@ void setup(void) { #ifdef USE_USB_SERIAL_CONSOLE TasConsole.begin(115200); // Will always be 115200 bps #if !ARDUINO_USB_MODE - USB.begin(); + USB.begin(); // This needs a serial console with DTR/DSR support #endif // No ARDUINO_USB_MODE TasConsole.println(); AddLog(LOG_LEVEL_INFO, PSTR("CMD: Using embedded USB"));