Refactor DALI command handling: streamline send methods and enhance scene color reporting

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Tony
2026-04-28 17:32:32 +08:00
parent 32e7329b3e
commit 9e1244712d
10 changed files with 84 additions and 38 deletions
+1
View File
@@ -201,6 +201,7 @@ bool DaliComm::sendCmd(uint8_t addr, uint8_t cmd) const {
return writeFrame(frame);
}
// Send extended command frame (0x11). Gateway will send twice for 0x11, but we only need to send once.
bool DaliComm::sendExtCmd(uint8_t addr, uint8_t cmd) const {
const std::vector<uint8_t> frame{0x11, addr, cmd};
const bool ret = writeFrame(frame);