Skip to content

Commit

Permalink
Fix compile error in SdVolume on ESP32 (MarlinFirmware#16728)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixstorm authored and GeminiServer committed Jan 31, 2020
1 parent 87df8a9 commit 0f2ac30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/sd/SdVolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0f2ac30

Please sign in to comment.