File tree Expand file tree Collapse file tree 5 files changed +24
-5
lines changed
libraries/HTTPUpdateServer/examples/WebUpdater Expand file tree Collapse file tree 5 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
247252extern bool btInUse ();
248253#endif
254+ #endif
249255
250256void initArduino ()
251257{
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments