mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +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:
@@ -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