Skip to content

Commit 738b9bf

Browse files
authored
Merge pull request #81 from tasmota/jtag_c3
fix to ensure that CDC+JTAG stay on on ESP32-C3
2 parents fc966e4 + fb87417 commit 738b9bf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: libraries/WiFi/src/WiFiGeneric.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ void WiFiGenericClass::useStaticBuffers(bool bufferMode){
555555
_wifiUseStaticBuffers = bufferMode;
556556
}
557557

558+
// Temporary fix to ensure that CDC+JTAG stay on on ESP32-C3
559+
#if CONFIG_IDF_TARGET_ESP32C3
560+
extern "C" void phy_bbpll_en_usb(bool en);
561+
#endif
558562

559563
bool wifiLowLevelInit(bool persistent){
560564
if(!lowLevelInitDone){
@@ -587,6 +591,10 @@ bool wifiLowLevelInit(bool persistent){
587591
lowLevelInitDone = false;
588592
return lowLevelInitDone;
589593
}
594+
// Temporary fix to ensure that CDC+JTAG stay on on ESP32-C3
595+
#if CONFIG_IDF_TARGET_ESP32C3
596+
phy_bbpll_en_usb(true);
597+
#endif
590598
if(!persistent){
591599
lowLevelInitDone = esp_wifi_set_storage(WIFI_STORAGE_RAM) == ESP_OK;
592600
}

0 commit comments

Comments
 (0)