diff --git a/firmware/controllers/lua/lua_hooks.cpp b/firmware/controllers/lua/lua_hooks.cpp index 461d93ef4b..c3bb220fd2 100644 --- a/firmware/controllers/lua/lua_hooks.cpp +++ b/firmware/controllers/lua/lua_hooks.cpp @@ -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()->reset(); + return 0; + }); }