Skip to content

Commit a4abddd

Browse files
authored
Merge branch 'espressif:master' into BTser_fix
2 parents 87bd991 + e0657db commit a4abddd

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

Diff for: .github/ISSUE_TEMPLATE/Issue-report.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ body:
4141
options:
4242
- latest master (checkout manually)
4343
- latest development Release Candidate (RC-X)
44+
- v2.0.11
4445
- v2.0.10
4546
- v2.0.9
4647
- v2.0.8

Diff for: cores/esp32/HWCDC.cpp

+12-3
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,18 @@ void HWCDC::begin(unsigned long baud)
200200
if(tx_lock == NULL) {
201201
tx_lock = xSemaphoreCreateMutex();
202202
}
203-
setRxBufferSize(256);//default if not preset
204-
setTxBufferSize(256);//default if not preset
205-
203+
//RX Buffer default has 256 bytes if not preset
204+
if(rx_queue == NULL) {
205+
if (!setRxBufferSize(256)) {
206+
log_e("HW CDC RX Buffer error");
207+
}
208+
}
209+
//TX Buffer default has 256 bytes if not preset
210+
if (tx_ring_buf == NULL) {
211+
if (!setTxBufferSize(256)) {
212+
log_e("HW CDC TX Buffer error");
213+
}
214+
}
206215
usb_serial_jtag_ll_disable_intr_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
207216
usb_serial_jtag_ll_clr_intsts_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
208217
usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY | USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT | USB_SERIAL_JTAG_INTR_BUS_RESET);

Diff for: cores/esp32/esp32-hal-bt.c

+4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@
1717
#if SOC_BT_SUPPORTED
1818
#ifdef CONFIG_BT_ENABLED
1919

20+
#if CONFIG_IDF_TARGET_ESP32
21+
bool btInUse(){ return true; }
22+
#else
2023
// user may want to change it to free resources
2124
__attribute__((weak)) bool btInUse(){ return true; }
25+
#endif
2226

2327
#include "esp_bt.h"
2428

Diff for: cores/esp32/esp32-hal-misc.c

+6
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,15 @@ bool verifyRollbackLater() { return false; }
243243
#endif
244244

245245
#ifdef CONFIG_BT_ENABLED
246+
#if CONFIG_IDF_TARGET_ESP32
247+
//overwritten in esp32-hal-bt.c
248+
bool btInUse() __attribute__((weak));
249+
bool btInUse(){ return false; }
250+
#else
246251
//from esp32-hal-bt.c
247252
extern bool btInUse();
248253
#endif
254+
#endif
249255

250256
void initArduino()
251257
{

Diff for: libraries/HTTPUpdateServer/examples/WebUpdater/WebUpdater.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ void setup(void) {
3333
Serial.println("WiFi failed, retrying.");
3434
}
3535

36-
MDNS.begin(host);
37-
if (MDNS.begin("esp32")) {
36+
if (MDNS.begin(host)) {
3837
Serial.println("mDNS responder started");
3938
}
4039

0 commit comments

Comments
 (0)