chore: use settings from radio JSON files instead of hal.h (#7411)

Co-authored-by: 3djc <3djc@gh.com>
This commit is contained in:
philmoz
2026-07-13 10:15:50 +10:00
committed by GitHub
co-authored by 3djc
parent 445c09f662
commit f3cabd42f7
100 changed files with 3290 additions and 2193 deletions
-15
View File
@@ -27,21 +27,6 @@ set(SRC ${SRC}
lua/lua_event.cpp
)
AddHWGenTarget(${HW_DESC_JSON} lua_inputs lua_inputs.inc)
AddHWGenTarget(${HW_DESC_JSON} lua_mixsrc lua_mixsrc.inc)
AddHWGenTarget(${HW_DESC_JSON} lua_keys lua_keys.inc)
set(SRC ${SRC}
${CMAKE_CURRENT_BINARY_DIR}/lua_inputs.inc
${CMAKE_CURRENT_BINARY_DIR}/lua_mixsrc.inc
${CMAKE_CURRENT_BINARY_DIR}/lua_keys.inc
)
# helper target for testing purposes
add_custom_target(lua_inputs DEPENDS ${HW_DESC_JSON} lua_inputs.inc)
add_custom_target(lua_mixsrc DEPENDS ${HW_DESC_JSON} lua_mixsrc.inc)
add_custom_target(lua_keys DEPENDS ${HW_DESC_JSON} lua_keys.inc)
if(GUI_DIR STREQUAL colorlcd)
set(SRC ${SRC} lua/api_colorlcd.cpp lua/api_colorlcd_lvgl.cpp lua/widgets.cpp)
else()
+1
View File
@@ -2897,6 +2897,7 @@ static int luaGetTrainerStatus(lua_State * L)
// To simplify code below
#if !defined(BLING_LED_STRIP_LENGTH)
#define BLING_LED_STRIP_START 0
#define BLING_LED_STRIP_LENGTH 0
#endif
#if !defined(CFS_LED_STRIP_LENGTH)