Explorar el Código

set white mode when adjusting color temperature. invert scale to match FUT092

Chris Mullins hace 8 años
padre
commit
39c65da95b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      lib/MiLight/FUT089PacketFormatter.cpp

+ 2 - 1
lib/MiLight/FUT089PacketFormatter.cpp

@@ -28,7 +28,8 @@ void FUT089PacketFormatter::updateColorRaw(uint8_t value) {
 }
 
 void FUT089PacketFormatter::updateTemperature(uint8_t value) {
-  command(FUT089_KELVIN, value);
+  updateColorWhite();
+  command(FUT089_KELVIN, 100 - value);
 }
 
 void FUT089PacketFormatter::updateSaturation(uint8_t value) {