Skip to content

Commit

Permalink
feat: move function call to header file
Browse files Browse the repository at this point in the history
  • Loading branch information
SuGlider authored May 14, 2024
1 parent a67cd31 commit 9d2db24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cores/esp32/HWCDC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ static void hw_cdc_isr_handler(void *arg) {
}
}

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

bool HWCDC::isCDC_Connected() {
static bool running = false;
Expand Down

0 comments on commit 9d2db24

Please sign in to comment.