mirror of https://github.com/FOME-Tech/fome-fw.git
add lua odometer reset function
This commit is contained in:
parent
d5349044bc
commit
733c0b10c6
|
@ -906,4 +906,9 @@ void configureRusefiLuaHooks(lua_State* l) {
|
|||
#if EFI_CAN_SUPPORT || EFI_UNIT_TEST
|
||||
lua_register(l, "txCan", lua_txCan);
|
||||
#endif
|
||||
|
||||
lua_register(l, "resetOdometer", [](lua_State*) {
|
||||
engine->module<TripOdometer>()->reset();
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue