[light] Add zero-copy support for API effect commands (#12384)

This commit is contained in:
J. Nick Koston authored and Jonathan Swoboda committed 2025-12-12 11:12:58 -05:00
1 parent a3a2a6d965
commit 1d13d18a16
7 files changed
+21 -12

No files matched your search

+1 -1
View File
@@ -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