feat: improve debug handling (#5039)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user