feat: improve debug handling (#5039)

This commit is contained in:
3djc
2024-05-20 19:30:27 +10:00
committed by GitHub
parent 79d2727508
commit 20d0b97399
2 changed files with 12 additions and 0 deletions
@@ -62,6 +62,10 @@ void setSelectedUsbMode(int mode)
#if defined(USB_GPIO_PIN_VBUS)
int usbPlugged()
{
#if defined(DEBUG_DISABLE_USB)
return(false);
#endif
static uint8_t debouncedState = 0;
static uint8_t lastState = 0;