File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -115,16 +115,6 @@ ESPUSB::ESPUSB(size_t task_stack_size, uint8_t event_task_priority)
115
115
,_task_stack_size(task_stack_size)
116
116
,_event_task_priority(event_task_priority)
117
117
{
118
- }
119
-
120
- ESPUSB::~ESPUSB (){
121
- if (arduino_usb_event_loop_handle) {
122
- esp_event_loop_delete (arduino_usb_event_loop_handle);
123
- arduino_usb_event_loop_handle = NULL ;
124
- }
125
- }
126
-
127
- bool ESPUSB::begin (){
128
118
if (!arduino_usb_event_loop_handle) {
129
119
esp_event_loop_args_t event_task_args = {
130
120
.queue_size = 5 ,
@@ -137,6 +127,16 @@ bool ESPUSB::begin(){
137
127
log_e (" esp_event_loop_create failed" );
138
128
}
139
129
}
130
+ }
131
+
132
+ ESPUSB::~ESPUSB (){
133
+ if (arduino_usb_event_loop_handle) {
134
+ esp_event_loop_delete (arduino_usb_event_loop_handle);
135
+ arduino_usb_event_loop_handle = NULL ;
136
+ }
137
+ }
138
+
139
+ bool ESPUSB::begin (){
140
140
if (!_started){
141
141
tinyusb_device_config_t tinyusb_device_config = {
142
142
.vid = vid,
You can’t perform that action at this time.
0 commit comments