mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 14:55:13 +03:00
USB modes cleanup (#5396)
* USB modes cleanup * Forgot a couple * Exclude joystick code from bootloader
This commit is contained in:
parent
f2cf444a64
commit
8662de39f5
10 changed files with 14 additions and 20 deletions
|
@ -116,7 +116,7 @@ bool usbStarted()
|
|||
return usbDriverStarted;
|
||||
}
|
||||
|
||||
#if defined(USB_JOYSTICK)
|
||||
#if !defined(BOOT)
|
||||
/*
|
||||
Prepare and send new USB data packet
|
||||
|
||||
|
@ -157,5 +157,4 @@ void usbJoystickUpdate()
|
|||
USBD_HID_SendReport(&USB_OTG_dev, HID_Buffer, HID_IN_PACKET);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // #defined(USB_JOYSTICK)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue