Fixup as in PR commits.
This commit is contained in:
parent
02efd46833
commit
b824f900d9
|
@ -68,6 +68,10 @@
|
||||||
|
|
||||||
#include "rx/rx.h"
|
#include "rx/rx.h"
|
||||||
|
|
||||||
|
#ifdef USE_USB_CDC_HID
|
||||||
|
#include "sensors/battery.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// DisplayPort management
|
// DisplayPort management
|
||||||
|
|
||||||
#ifndef CMS_MAX_DEVICE
|
#ifndef CMS_MAX_DEVICE
|
||||||
|
@ -993,6 +997,11 @@ void cmsUpdate(uint32_t currentTimeUs)
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_USB_CDC_HID
|
||||||
|
if (getBatteryCellCount() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int16_t rcDelayMs = BUTTON_TIME;
|
static int16_t rcDelayMs = BUTTON_TIME;
|
||||||
static int holdCount = 1;
|
static int holdCount = 1;
|
||||||
|
|
Loading…
Reference in New Issue