This commit is contained in:
rusefillc 2021-11-13 08:23:44 -05:00
parent 8fdf2521e5
commit 6be84c0de9
1 changed files with 2 additions and 1 deletions

View File

@ -470,6 +470,8 @@ void configureRusefiLuaHooks(lua_State* l) {
lua_register(l, "table3d", lua_table3d);
lua_register(l, "curve", lua_curve2d);
lua_register(l, "findCurveIndex", lua_findCurveIndex);
// used by unit tests
lua_register(l, "txCan", lua_txCan);
#if !EFI_UNIT_TEST
lua_register(l, "startPwm", lua_startPwm);
@ -500,7 +502,6 @@ void configureRusefiLuaHooks(lua_State* l) {
return 1;
});
lua_register(l, "txCan", lua_txCan);
#if EFI_CAN_SUPPORT
lua_register(l, "canRxAdd", [](lua_State* l) {
auto eid = luaL_checkinteger(l, 1);