1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Extend the scope of BOXPARALYZE to cover stick commands, adjustments, and CMS.

This commit is contained in:
mikeller 2019-05-04 22:10:24 +12:00
parent ba95968e08
commit 4fb58b340e
5 changed files with 19 additions and 17 deletions

View file

@ -1079,18 +1079,18 @@ uint16_t cmsHandleKeyWithRepeat(displayPort_t *pDisplay, cms_key_e key, int repe
return ret;
}
void cmsUpdate(uint32_t currentTimeUs)
static void cmsUpdate(uint32_t currentTimeUs)
{
if (IS_RC_MODE_ACTIVE(BOXPARALYZE)
#ifdef USE_RCDEVICE
if(rcdeviceInMenu) {
return ;
}
|| rcdeviceInMenu
#endif
#ifdef USE_USB_CDC_HID
if (getBatteryCellCount() == 0 && usbDevConfig()->type == COMPOSITE) {
|| (getBatteryCellCount() == 0 && usbDevConfig()->type == COMPOSITE)
#endif
) {
return;
}
#endif
static int16_t rcDelayMs = BUTTON_TIME;
static int holdCount = 1;