mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 19:16:06 +00:00
Update esphome/components/http_request/http_request_idf.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
68b328c019
commit
dffc9257dd
@@ -232,7 +232,7 @@ int HttpContainerIDF::read(uint8_t *buf, size_t max_len) {
|
||||
}
|
||||
|
||||
// read_len_or_error < 0: check for EAGAIN (no data available in non-blocking mode)
|
||||
// ESP_ERR_HTTP_EAGAIN = 0x7007, returned as negative
|
||||
// ESP_ERR_HTTP_EAGAIN is returned as a negative error code
|
||||
if (read_len_or_error == -ESP_ERR_HTTP_EAGAIN) {
|
||||
return 0; // No data available yet, caller should retry
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user