mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[light] Add zero-copy support for API effect commands (#12384)
This commit is contained in:
@@ -533,7 +533,7 @@ void APIConnection::light_command(const LightCommandRequest &msg) {
|
||||
if (msg.has_flash_length)
|
||||
call.set_flash_length(msg.flash_length);
|
||||
if (msg.has_effect)
|
||||
call.set_effect(msg.effect);
|
||||
call.set_effect(reinterpret_cast<const char *>(msg.effect), msg.effect_len);
|
||||
call.perform();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user