Init usb charger detect
This commit is contained in:
@@ -91,7 +91,7 @@ void drawTopBar()
|
|||||||
/* Tx battery */
|
/* Tx battery */
|
||||||
uint8_t bars = GET_TXBATT_BARS(5);
|
uint8_t bars = GET_TXBATT_BARS(5);
|
||||||
#if defined(USB_CHARGER)
|
#if defined(USB_CHARGER)
|
||||||
if(usbChargerLed() && BLINK_ON_PHASE)
|
if (usbChargerLed() && BLINK_ON_PHASE)
|
||||||
lcdDrawBitmapPattern(LCD_W-130, 24, LBM_TOPMENU_TXBATT_CHARGING, MENU_TITLE_COLOR);
|
lcdDrawBitmapPattern(LCD_W-130, 24, LBM_TOPMENU_TXBATT_CHARGING, MENU_TITLE_COLOR);
|
||||||
else {
|
else {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -191,6 +191,10 @@ void boardInit()
|
|||||||
|
|
||||||
ledInit();
|
ledInit();
|
||||||
|
|
||||||
|
#if defined(USB_CHARGER)
|
||||||
|
usbChargerInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAS_SPORT_UPDATE_CONNECTOR()
|
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||||
sportUpdateInit();
|
sportUpdateInit();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user