mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Allow USB mode selection on USB connect (#5193)
Allow all USB modes to be compiled in at the same time
This commit is contained in:
parent
2910488a30
commit
b7acee5723
45 changed files with 1515 additions and 1239 deletions
|
@ -138,7 +138,7 @@ void mixerTask(void * pdata)
|
|||
|
||||
uint32_t now = CoGetOSTime();
|
||||
bool run = false;
|
||||
#if defined(USB_JOYSTICK) && !defined(SIMU)
|
||||
#if !defined(SIMU) && defined(STM32)
|
||||
if ((now - lastRunTime) >= (usbStarted() ? 5 : 10)) { // run at least every 20ms (every 10ms if USB is active)
|
||||
#else
|
||||
if ((now - lastRunTime) >= 10) { // run at least every 20ms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue