platform: arduino: u8display: delete task on stop
This commit is contained in:
parent
22cf849e15
commit
2a0d72f0a1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user