Skip to content

Commit 9d2db24

Browse files
authored
feat: move function call to header file
1 parent a67cd31 commit 9d2db24

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cores/esp32/HWCDC.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,12 @@ static void hw_cdc_isr_handler(void *arg) {
147147
}
148148
}
149149

150-
inline bool HWCDC::isPlugged(void) {
150+
// Moved to header file as inline function. Kept just as future reference.
151+
//inline bool HWCDC::isPlugged(void) {
151152
// SOF ISR is causing esptool to be unable to upload firmware to the board
152153
// Timer test for SOF seems to work when uploading firmware
153-
return usb_serial_jtag_is_connected();//(lastSOF_ms + SOF_TIMEOUT) >= millis();
154-
}
154+
// return usb_serial_jtag_is_connected();//(lastSOF_ms + SOF_TIMEOUT) >= millis();
155+
//}
155156

156157
bool HWCDC::isCDC_Connected() {
157158
static bool running = false;

0 commit comments

Comments
 (0)