From d8fa00fa075d89e4a046316dc08837aa1d2da0e4 Mon Sep 17 00:00:00 2001 From: Paul C Diem Date: Tue, 9 Feb 2021 21:40:37 -0600 Subject: [PATCH] Use # prefix for color channel hex value --- tasmota/support_device_groups.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasmota/support_device_groups.ino b/tasmota/support_device_groups.ino index b651443bb..1a412ab3f 100644 --- a/tasmota/support_device_groups.ino +++ b/tasmota/support_device_groups.ino @@ -625,9 +625,12 @@ bool _SendDeviceGroupMessage(uint32_t device, DevGroupMessageType message_type, switch (item) { case DGR_ITEM_LIGHT_CHANNELS: { + bool hex = false; char * endptr; - value = strtoul((char *)value_ptr, &endptr, 10); - bool hex = (*endptr != ','); + if (*value_ptr == '#') { + value_ptr++; + hex = true; + } for (int i = 0; i < 6; i++) { *out_ptr = 0; if (*value_ptr != ' ') {