Skip to content

Commit 8ecbce8

Browse files
Cleanup
1 parent fdebd5b commit 8ecbce8

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
@@ -377,7 +377,7 @@ std::optional<std::unique_ptr<MemoryBuffer>> OpenStreetMap::urlToBuffer(const St
377377

378378
bool OpenStreetMap::fetchTile(CachedTile &tile, uint32_t x, uint32_t y, uint8_t zoom, String &result)
379379
{
380-
if (zoom < 1 || zoom > OSM_MAX_ZOOM)
380+
if (!zoom || zoom > OSM_MAX_ZOOM)
381381
{
382382
result = "Invalid zoom level: " + String(zoom);
383383
return false;

0 commit comments

Comments
 (0)