Skip to content

Commit e89f442

Browse files
authored
feat(usb): global event task stack size normalization
1 parent e8d0d31 commit e89f442

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/esp32/USB.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include "esp_event.h"
2323
#include "USBCDC.h"
24+
#include "Arduino.h" // necessary for ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE definition
2425

2526
#define ARDUINO_USB_ON_BOOT (ARDUINO_USB_CDC_ON_BOOT | ARDUINO_USB_MSC_ON_BOOT | ARDUINO_USB_DFU_ON_BOOT)
2627

@@ -43,7 +44,7 @@ typedef union {
4344

4445
class ESPUSB {
4546
public:
46-
ESPUSB(size_t event_task_stack_size = 2048, uint8_t event_task_priority = 5);
47+
ESPUSB(size_t event_task_stack_size = ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE, uint8_t event_task_priority = 5);
4748
~ESPUSB();
4849

4950
void onEvent(esp_event_handler_t callback);

0 commit comments

Comments
 (0)