We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d0d31 commit e89f442Copy full SHA for e89f442
cores/esp32/USB.h
@@ -21,6 +21,7 @@
21
22
#include "esp_event.h"
23
#include "USBCDC.h"
24
+#include "Arduino.h" // necessary for ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE definition
25
26
#define ARDUINO_USB_ON_BOOT (ARDUINO_USB_CDC_ON_BOOT | ARDUINO_USB_MSC_ON_BOOT | ARDUINO_USB_DFU_ON_BOOT)
27
@@ -43,7 +44,7 @@ typedef union {
43
44
45
class ESPUSB {
46
public:
- 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);
48
~ESPUSB();
49
50
void onEvent(esp_event_handler_t callback);
0 commit comments