Skip to content

Commit 52534fc

Browse files
committed
neopx2
1 parent 72c1ec3 commit 52534fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shelly_statusled.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ Status StatusLED::SetState(bool on, const char *source) {
6666
struct rgb color = on ? colorOn : colorOff;
6767

6868
for (int i = 0; i < num_pixel_; i++) {
69+
mgos_neopixel_clear(pixel_);
6970
mgos_neopixel_set(pixel_, i, color.r, color.g, color.b);
71+
mgos_neopixel_show(pixel_);
7072
}
71-
mgos_neopixel_show(pixel_);
73+
7274
return Status::OK();
7375
}
7476

0 commit comments

Comments
 (0)