only:lua isFirmwareError

This commit is contained in:
rusEFI LLC 2024-06-12 15:39:51 -04:00
parent bc3b1fe273
commit e176f4bdf6
1 changed files with 4 additions and 0 deletions

View File

@ -1077,6 +1077,10 @@ void configureRusefiLuaHooks(lua_State* lState) {
lua_register(lState, "setAirmass", lua_setAirmass);
#endif // EFI_ENGINE_CONTROL
lua_register(lState, "isFirmwareError", [](lua_State* l) {
lua_pushboolean(l, hasFirmwareError());
return 1;
});
#if EFI_SHAFT_POSITION_INPUT
lua_register(lState, "stopEngine", [](lua_State*) {
doScheduleStopEngine();