[light] Add zero-copy support for API effect commands (#12384)
This commit is contained in:
1 parent
a3a2a6d965
commit
1d13d18a16
7 files changed
+21
-12
No files matched your search
@@ -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