feat: use (only) dedicated charge led on compatible Jumper handsets (#5512)

This commit is contained in:
3djc
2024-09-11 18:50:16 +10:00
committed by GitHub
parent b78da3436e
commit f680d86034
4 changed files with 31 additions and 35 deletions
+5
View File
@@ -75,6 +75,7 @@ if (PCB STREQUAL X10)
endif()
# Aux2 is reserved for serial gimbal on this radio
set(AUX2_SERIAL OFF)
set(USB_CHARGE_LED YES)
add_definitions(-DMANUFACTURER_JUMPER)
set(LCD_DRIVER lcd_st7796s_driver.cpp)
elseif (PCBREV STREQUAL T16)
@@ -341,6 +342,10 @@ if(SWSERIALPOWER)
add_definitions(-DSWSERIALPOWER)
endif()
if(USB_CHARGE_LED)
add_definitions(-DUSB_CHARGE_LED)
endif()
if(USB_CHARGER)
add_definitions(-DUSB_CHARGER)
target_sources(board PRIVATE ${TARGET_SRC_DIR}/usb_charger_driver.cpp)