more hellen power management

This commit is contained in:
Andrey 2024-03-23 15:51:12 -04:00
parent 644cba8d55
commit 06fae8a555
1 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,10 @@
#include "can_filter.h"
#include "tunerstudio.h"
#if EFI_PROD_CODE && HW_HELLEN
#include "hellen_meta.h"
#endif
#if EFI_DAC
#include "dac.h"
#endif // EFI_DAC
@ -1086,6 +1090,17 @@ void configureRusefiLuaHooks(lua_State* lState) {
});
#endif // EFI_VEHICLE_SPEED
#if EFI_PROD_CODE && HW_HELLEN
lua_register(lState, "hellenEnablePower", [](lua_State*) {
hellenEnableEn();
return 0;
});
lua_register(lState, "hellenDisablePower", [](lua_State*) {
hellenDisableEn();
return 0;
});
#endif // HW_HELLEN
#if EFI_DAC
lua_register(lState, "setDacVoltage", [](lua_State* l) {
auto channel = luaL_checkinteger(l, 1);