funny games with dash via Lua to override CAN dash profile values #6235

This commit is contained in:
rusefillc 2024-03-17 10:16:22 -04:00
parent 3136cc786b
commit 0078df1988
1 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,9 @@
#include "global.h"
#include "engine_parts.h"
#include "engine_state_generated.h"
#if !defined(EFI_BOOTLOADER)
#include "lua_hooks.h"
#endif
class EngineState : public engine_state_s {
public:
@ -86,6 +89,12 @@ public:
multispark_state multispark;
#if !defined(EFI_BOOTLOADER)
// todo: techical debt: bootloader should not compile engine.h! at the moment bootloader depends on engine->pin registry not nice
// custom values to display on the dash for UI widgets
LuaDashOverride luaDashOverride;
#endif
bool shouldUpdateInjectionTiming = true;
};