add lua odometer reset function

This commit is contained in:
Matthew Kennedy 2023-10-03 01:11:35 -07:00
parent d5349044bc
commit 733c0b10c6
1 changed files with 5 additions and 0 deletions

View File

@ -906,4 +906,9 @@ void configureRusefiLuaHooks(lua_State* l) {
#if EFI_CAN_SUPPORT || EFI_UNIT_TEST #if EFI_CAN_SUPPORT || EFI_UNIT_TEST
lua_register(l, "txCan", lua_txCan); lua_register(l, "txCan", lua_txCan);
#endif #endif
lua_register(l, "resetOdometer", [](lua_State*) {
engine->module<TripOdometer>()->reset();
return 0;
});
} }