@@ -279,15 +279,13 @@ void LuaThread::ThreadTask() {
279279static LuaThread luaThread;
280280
281281void startLua () {
282- luaHeapInit ();
283-
284282#if EFI_CAN_SUPPORT
285283 initLuaCanRx ();
286284#endif // EFI_CAN_SUPPORT
287285
288- addConsoleActionII (" set_lua_setting" , [](int index, int value) {
289- engineConfiguration->scriptSetting [index] = value;
290- });
286+ addConsoleActionII (" set_lua_setting" , [](int index, int value) {
287+ engineConfiguration->scriptSetting [index] = value;
288+ });
291289
292290 luaThread.start ();
293291
@@ -306,16 +304,13 @@ void startLua() {
306304 needsReset = true ;
307305 });
308306
309- addConsoleAction (" luamemory" , [](){
310- efiPrintf (" maxLuaDuration %lu" , maxLuaDuration);
311- maxLuaDuration = 0 ;
312- efiPrintf (" rx total/recent/dropped %d %d %d" , totalRxCount,
313- recentRxCount, getLuaCanRxDropped ());
314- efiPrintf (" luaCycle %luus including luaRxTime %dus" , NT2US (engine->outputChannels .luaLastCycleDuration ),
315- NT2US (rxTime));
316-
317- luaHeapPrintInfo ();
318- });
307+ addConsoleAction (" luainfo" , [](){
308+ efiPrintf (" maxLuaDuration %lu" , maxLuaDuration);
309+ maxLuaDuration = 0 ;
310+ efiPrintf (" rx total/recent/dropped %d %d %d" , totalRxCount,
311+ recentRxCount, getLuaCanRxDropped ());
312+ luaHeapPrintInfo ();
313+ });
319314}
320315
321316#else // not EFI_UNIT_TEST
0 commit comments