Explorar o código

need to send OFF packet as well in order for night mode to work

Chris Mullins %!s(int64=8) %!d(string=hai) anos
pai
achega
54e77d4ec8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/MiLight/RgbwPacketFormatter.cpp

+ 1 - 1
lib/MiLight/RgbwPacketFormatter.cpp

@@ -88,7 +88,7 @@ void RgbwPacketFormatter::updateColorWhite() {
 void RgbwPacketFormatter::enableNightMode() {
   uint8_t button = STATUS_COMMAND(OFF, groupId);
 
-  //command(button, 0);
+  command(button, 0);
   command(button | 0x10, 0);
 }