From cd650b30bd3ddfb9f71622278ef5b6f94ae27ac8 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 19 Jan 2024 12:52:41 +1100 Subject: fix some lua stack leaks + add a console func to help debug --- src/ui/ui_fsm.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/ui_fsm.cpp') diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index 7f94abc5..e532e693 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -541,6 +541,10 @@ void Lua::react(const OnLuaError& err) { ESP_LOGE("lua", "%s", err.message.c_str()); } +void Lua::react(const DumpLuaStack& ev) { + sLua->DumpStack(); +} + void Lua::react(const internal::BackPressed& ev) { PopLuaScreen(sLua->state()); } -- cgit v1.2.3