Skip to content

Commit 09e3ff8

Browse files
Dont assume 1 TICK == 1 ms (#79)
1 parent 3ca4a82 commit 09e3ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenStreetMap-esp32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void OpenStreetMap::runJobs(const std::vector<TileJob> &jobs)
252252
}
253253

254254
while (pendingJobs.load() > 0)
255-
delay(1);
255+
vTaskDelay(pdMS_TO_TICKS(1));
256256

257257
for (const TileJob &job : jobs)
258258
job.tile->busy = false;

0 commit comments

Comments
 (0)