Skip to content

Commit ada732f

Browse files
Cleanup
1 parent 1f8a8cb commit ada732f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenStreetMap-esp32.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ bool OpenStreetMap::fillBuffer(WiFiClient *stream, MemoryBuffer &buffer, size_t
304304
lastReadTime = millis();
305305
}
306306
else
307-
delay(1); // Give system a breath
307+
vTaskDelay(pdMS_TO_TICKS(1));
308308
}
309309
else
310310
{
@@ -313,7 +313,7 @@ bool OpenStreetMap::fillBuffer(WiFiClient *stream, MemoryBuffer &buffer, size_t
313313
result = "Timeout: No data received within " + String(OSM_TILE_TIMEOUT_MS) + " ms";
314314
return false;
315315
}
316-
yield();
316+
vTaskDelay(pdMS_TO_TICKS(1));
317317
}
318318
}
319319
return true;

0 commit comments

Comments
 (0)