Skip to content

Commit 8a5fcb4

Browse files
authored
feat(usb): global event task priority normalization
1 parent 5c1e135 commit 8a5fcb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/USB.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +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
24+
#include "Arduino.h" // defines ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE and ARDUINO_SERIAL_EVENT_TASK_PRIORITY
2525

2626
#define ARDUINO_USB_ON_BOOT (ARDUINO_USB_CDC_ON_BOOT | ARDUINO_USB_MSC_ON_BOOT | ARDUINO_USB_DFU_ON_BOOT)
2727

@@ -44,7 +44,7 @@ typedef union {
4444

4545
class ESPUSB {
4646
public:
47-
ESPUSB(size_t event_task_stack_size = ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE, 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 = ARDUINO_SERIAL_EVENT_TASK_PRIORITY);
4848
~ESPUSB();
4949

5050
void onEvent(esp_event_handler_t callback);

0 commit comments

Comments
 (0)