Fixup as in PR commits.

This commit is contained in:
Chris 2018-04-23 23:19:31 +01:00
parent 02efd46833
commit b824f900d9
1 changed files with 9 additions and 0 deletions

View File

@ -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;