Skip to content

Commit

Permalink
Fix core 3 S2 USB
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Oct 24, 2023
1 parent 84ced0f commit 5c395ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasmota/tasmota.ino
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ void setup(void) {

#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
#ifdef USE_USB_CDC_CONSOLE
bool is_connected_to_USB = false;

bool is_connected_to_USB = false;
#if SOC_USB_SERIAL_JTAG_SUPPORTED // Not S2
rtc_clk_bbpll_add_consumer(); // Maybe unneeded
usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SOF);
Expand All @@ -545,6 +545,8 @@ void setup(void) {
delay(1);
}
rtc_clk_bbpll_remove_consumer();
#else
is_connected_to_USB = true; // S2
#endif // SOC_USB_SERIAL_JTAG_SUPPORTED

if (is_connected_to_USB) {
Expand Down

0 comments on commit 5c395ff

Please sign in to comment.