Skip to content

Commit 28f2855

Browse files
committed
Add commented out handlers for esptool.js in TinyUSB CDC
For future use
1 parent b97dab4 commit 28f2855

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/esp32/USBCDC.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ void USBCDC::_onLineState(bool _dtr, bool _rts){
210210
arduino_usb_cdc_event_data_t p;
211211
arduino_usb_event_post(ARDUINO_USB_CDC_EVENTS, ARDUINO_USB_CDC_DISCONNECTED_EVENT, &p, sizeof(arduino_usb_cdc_event_data_t), portMAX_DELAY);
212212
}
213+
// } else if(lineState == CDC_LINE_2){//esptool.js
214+
// lineState++;
213215
} else {
214216
lineState = CDC_LINE_IDLE;
215217
}
@@ -222,6 +224,8 @@ void USBCDC::_onLineState(bool _dtr, bool _rts){
222224
} else if(dtr && !rts){
223225
if(lineState == CDC_LINE_2){
224226
lineState++;
227+
// } else if(lineState == CDC_LINE_IDLE){//esptool.js
228+
// lineState++;
225229
} else {
226230
lineState = CDC_LINE_IDLE;
227231
}

0 commit comments

Comments
 (0)