Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b4be34

Browse files
committedMay 29, 2024·
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.