chore(radio): small board cleanup (#6169)

This commit is contained in:
Raphael Coeffic
2025-05-08 18:17:39 +10:00
committed by GitHub
parent 0cee1936c8
commit ba5a60bfc1
7 changed files with 59 additions and 86 deletions
@@ -85,7 +85,7 @@ void setSelectedUsbMode(int mode)
int usbPlugged()
{
#if defined(DEBUG_DISABLE_USB)
return(false);
return false;
#endif
static uint8_t debouncedState = 0;
@@ -135,6 +135,8 @@ void usbInit()
#else
gpio_init(USB_GPIO_VBUS, GPIO_IN, GPIO_PIN_SPEED_LOW);
#endif
// prime debounce state...
usbPlugged();
#endif
// TODO: seems this is only needed for USB wakeup,