We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36a7b8b commit d1e65d8Copy full SHA for d1e65d8
1 file changed
src/PPUC.cpp
@@ -474,11 +474,14 @@ bool PPUC::Connect() {
474
(uint8_t)CONFIG_TOPIC_LED_EFFECT, index++,
475
(uint8_t)CONFIG_TOPIC_LED_SEGMENT,
476
n_led_effect["segment"].as<uint32_t>()));
477
+ uint32_t color;
478
+ std::stringstream ss;
479
+ ss << std::hex << n_led_effect["color"].as<std::string>();
480
+ ss >> color;
481
m_pRS485Comm->SendConfigEvent(
482
new ConfigEvent(n_ledStripe["board"].as<uint8_t>(),
483
- (uint8_t)CONFIG_TOPIC_COLOR,
- n_led_effect["color"].as<uint32_t>()));
484
+ (uint8_t)CONFIG_TOPIC_COLOR, color));
485
486
487
0 commit comments