diff --git a/src/platform/arduino/U8Display.cpp b/src/platform/arduino/U8Display.cpp index b29d465..adaea3e 100644 --- a/src/platform/arduino/U8Display.cpp +++ b/src/platform/arduino/U8Display.cpp @@ -18,6 +18,7 @@ class U8Display : public Task { }; void onStart() { + Log.trace("display: starting redraw thread"); xTaskCreatePinnedToCore( &U8Display::redrawTask, name, @@ -28,6 +29,11 @@ class U8Display : public Task { ); } + void onStop() { + Log.trace("display: stopping redraw thread"); + vTaskDelete(m_renderTask); + } + void handleEvent(const InputEvent& evt) { m_lastEvent = evt; if (m_state == Idle) {