diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-01-19 12:52:41 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-01-19 12:52:41 +1100 |
| commit | cd650b30bd3ddfb9f71622278ef5b6f94ae27ac8 (patch) | |
| tree | 482058e274f0daee21a1e8798cdd39e4b94be17c /src/ui/ui_fsm.cpp | |
| parent | 1525afe8aaadfaa877f8987f0ea224263a612b5e (diff) | |
| download | tangara-fw-cd650b30bd3ddfb9f71622278ef5b6f94ae27ac8.tar.gz | |
fix some lua stack leaks + add a console func to help debug
Diffstat (limited to 'src/ui/ui_fsm.cpp')
| -rw-r--r-- | src/ui/ui_fsm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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()); } |
