mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
[http_request] Soften SBO comment to say supported toolchains
This commit is contained in:
@@ -202,7 +202,7 @@ defer:
|
||||
// Defer to the main loop so all update_info_ and state_ writes happen on the
|
||||
// same thread as readers (API, MQTT, web server). This is a single defer for
|
||||
// both success and error paths to avoid multiple std::function instantiations.
|
||||
// Lambda captures only 2 pointers (8 bytes) — fits in std::function SBO on all platforms.
|
||||
// Lambda captures only 2 pointers (8 bytes) — fits in std::function SBO on supported toolchains.
|
||||
this_update->defer([this_update, result]() {
|
||||
if (result->error_str != nullptr) {
|
||||
this_update->status_set_error(result->error_str);
|
||||
|
||||
Reference in New Issue
Block a user