Skip to content

Commit 6b4be34

Browse files
fixing download function condition exit
1 parent b614b4e commit 6b4be34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Arduino_ESP32_OTA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int Arduino_ESP32_OTA::download(const char * ota_url)
291291
}
292292

293293
int res = 0;
294-
while((res = downloadPoll()) <= 0);
294+
while((res = downloadPoll()) == 0);
295295

296296
return res == 1? _context->writtenBytes : res;
297297
}

0 commit comments

Comments
 (0)