mirror of https://github.com/rusefi/rusefi.git
more hellen power management
This commit is contained in:
parent
644cba8d55
commit
06fae8a555
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue