From 1d82b94cc90759b59111cd1e1e7d8b2dc39ec7bc Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Wed, 12 Jun 2024 08:19:44 +0200 Subject: [PATCH] handle value exception --- ESP32/console_esp32.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ESP32/console_esp32.cpp b/ESP32/console_esp32.cpp index 548569e..5b7a131 100644 --- a/ESP32/console_esp32.cpp +++ b/ESP32/console_esp32.cpp @@ -148,6 +148,9 @@ void console_esp32::panel_update_thread() catch(std::exception & e) { put_string_lf(format("Exception in panel thread: %s", e.what())); } + catch(int e) { + put_string_lf(format("Exception in panel thread: %d", e)); + } catch(...) { put_string_lf("Unknown exception in panel thread"); }