Fix compile error in SdVolume on ESP32 (#16728)

2.0.x
felixstorm 5 years ago committed by GitHub
parent 3c9464eea4
commit 8d4dd88bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -296,7 +296,7 @@ int32_t SdVolume::freeClusterCount() {
// block for 10+ seconds. yield() is insufficient since it blocks lower prio tasks (e.g., idle).
static millis_t nextTaskTime = 0;
const millis_t ms = millis();
if (ELAPSED(ms, nextTaskTime) {
if (ELAPSED(ms, nextTaskTime)) {
vTaskDelay(1); // delay 1 tick (Minimum. Usually 10 or 1 ms depending on skdconfig.h)
nextTaskTime = ms + 1000; // tickle the task manager again in 1 second
}

Loading…
Cancel
Save