chore: use settings from radio JSON files instead of hal.h (#7411)
Co-authored-by: 3djc <3djc@gh.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user