mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
Update FormatSDCardActivity.cpp
This commit is contained in:
parent
6a7b42cb03
commit
1cb59eba90
@ -97,9 +97,8 @@ void FormatSDCardActivity::loop() {
|
|||||||
if (mappedInput.wasPressed(MappedInputManager::Button::Confirm)) {
|
if (mappedInput.wasPressed(MappedInputManager::Button::Confirm)) {
|
||||||
xSemaphoreTake(renderingMutex, portMAX_DELAY);
|
xSemaphoreTake(renderingMutex, portMAX_DELAY);
|
||||||
state = FORMATTING;
|
state = FORMATTING;
|
||||||
|
render(); // Render synchronously to show "Formatting..." before we start
|
||||||
xSemaphoreGive(renderingMutex);
|
xSemaphoreGive(renderingMutex);
|
||||||
updateRequired = true;
|
|
||||||
vTaskDelay(10 / portTICK_PERIOD_MS);
|
|
||||||
performFormat();
|
performFormat();
|
||||||
}
|
}
|
||||||
if (mappedInput.wasPressed(MappedInputManager::Button::Back)) {
|
if (mappedInput.wasPressed(MappedInputManager::Button::Back)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user