File tree 5 files changed +24
-5
lines changed
libraries/HTTPUpdateServer/examples/WebUpdater
5 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 41
41
options :
42
42
- latest master (checkout manually)
43
43
- latest development Release Candidate (RC-X)
44
+ - v2.0.11
44
45
- v2.0.10
45
46
- v2.0.9
46
47
- v2.0.8
Original file line number Diff line number Diff line change @@ -200,9 +200,18 @@ void HWCDC::begin(unsigned long baud)
200
200
if (tx_lock == NULL ) {
201
201
tx_lock = xSemaphoreCreateMutex ();
202
202
}
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
+ }
206
215
usb_serial_jtag_ll_disable_intr_mask (USB_SERIAL_JTAG_LL_INTR_MASK);
207
216
usb_serial_jtag_ll_clr_intsts_mask (USB_SERIAL_JTAG_LL_INTR_MASK);
208
217
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 17
17
#if SOC_BT_SUPPORTED
18
18
#ifdef CONFIG_BT_ENABLED
19
19
20
+ #if CONFIG_IDF_TARGET_ESP32
21
+ bool btInUse (){ return true; }
22
+ #else
20
23
// user may want to change it to free resources
21
24
__attribute__((weak )) bool btInUse (){ return true; }
25
+ #endif
22
26
23
27
#include "esp_bt.h"
24
28
Original file line number Diff line number Diff line change @@ -243,9 +243,15 @@ bool verifyRollbackLater() { return false; }
243
243
#endif
244
244
245
245
#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
246
251
//from esp32-hal-bt.c
247
252
extern bool btInUse ();
248
253
#endif
254
+ #endif
249
255
250
256
void initArduino ()
251
257
{
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ void setup(void) {
33
33
Serial.println (" WiFi failed, retrying." );
34
34
}
35
35
36
- MDNS.begin (host);
37
- if (MDNS.begin (" esp32" )) {
36
+ if (MDNS.begin (host)) {
38
37
Serial.println (" mDNS responder started" );
39
38
}
40
39
You can’t perform that action at this time.
0 commit comments