Avoid leaving screens mid-display update

Was leave the EPD in a bad state, blocking further actions
This commit is contained in:
Dave Allie
2025-12-06 03:02:52 +11:00
parent 98c8e7e77c
commit 899caab70c
4 changed files with 24 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/semphr.h>
#include <functional>
#include <string>
@@ -10,6 +11,7 @@
class FileSelectionScreen final : public Screen {
TaskHandle_t displayTaskHandle = nullptr;
SemaphoreHandle_t renderingMutex = nullptr;
std::string basepath = "/";
std::vector<std::string> files;
int selectorIndex = 0;