mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Fixup as in PR commits.
This commit is contained in:
parent
02efd46833
commit
b824f900d9
1 changed files with 9 additions and 0 deletions
|
@ -68,6 +68,10 @@
|
|||
|
||||
#include "rx/rx.h"
|
||||
|
||||
#ifdef USE_USB_CDC_HID
|
||||
#include "sensors/battery.h"
|
||||
#endif
|
||||
|
||||
// DisplayPort management
|
||||
|
||||
#ifndef CMS_MAX_DEVICE
|
||||
|
@ -993,6 +997,11 @@ void cmsUpdate(uint32_t currentTimeUs)
|
|||
return ;
|
||||
}
|
||||
#endif
|
||||
#ifdef USE_USB_CDC_HID
|
||||
if (getBatteryCellCount() == 0) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int16_t rcDelayMs = BUTTON_TIME;
|
||||
static int holdCount = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue