Fix nrf52 USB (don't call delay() in loop() if connected via usb)

This commit is contained in:
Kevin Hester
2021-04-28 15:11:55 +08:00
parent a42bb80cf4
commit 28b7bd347a
3 changed files with 13 additions and 2 deletions

View File

@@ -19,6 +19,10 @@ static inline void debugger_break(void)
"mov pc, lr\n\t");
}
bool loopCanSleep() {
return !tud_cdc_connected();
}
// handle standard gcc assert failures
void __attribute__((noreturn)) __assert_func(const char *file, int line, const char *func, const char *failedexpr)
{