1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-24 04:29:34 +00:00

Fix compile error in SdVolume on ESP32 (#16728)

This commit is contained in:
felixstorm 2020-01-30 19:22:42 +01:00 committed by GitHub
parent 3c9464eea4
commit 8d4dd88bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,7 @@ int32_t SdVolume::freeClusterCount() {
// block for 10+ seconds. yield() is insufficient since it blocks lower prio tasks (e.g., idle). // block for 10+ seconds. yield() is insufficient since it blocks lower prio tasks (e.g., idle).
static millis_t nextTaskTime = 0; static millis_t nextTaskTime = 0;
const millis_t ms = millis(); 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) 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 nextTaskTime = ms + 1000; // tickle the task manager again in 1 second
} }