From: Martin Mares Date: Sun, 27 Feb 2022 13:19:30 +0000 (+0100) Subject: Bifrost: Send our name as LED owner X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=773088249e716ccc5290bf413e2bdcbba0e3e23e;p=home-hw.git Bifrost: Send our name as LED owner --- diff --git a/rainbow/desktop/burrow-bifrost.c b/rainbow/desktop/burrow-bifrost.c index 6a2605b..62de296 100644 --- a/rainbow/desktop/burrow-bifrost.c +++ b/rainbow/desktop/burrow-bifrost.c @@ -135,10 +135,10 @@ static int signal_urgent_windows(sd_bus_message *m, void *userdata UNUSED, sd_bu char topic[100]; snprintf(topic, sizeof(topic), "burrow/lights/rainbow/%d", led->index); if (mask & (1 << i)) { - mqtt_publish(topic, "%.3f %.3f %.3f", led->r, led->g, led->b); + mqtt_publish(topic, "%.3f %.3f %.3f bifrost", led->r, led->g, led->b); current_led_mask |= 1U << i; } else { - mqtt_publish(topic, "0 0 0"); + mqtt_publish(topic, ""); current_led_mask &= ~(1U << i); } }