Explorar el Código

fix ordering error

Chris Mullins hace 8 años
padre
commit
6044947df7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/MiLight/RgbwPacketFormatter.cpp

+ 1 - 1
lib/MiLight/RgbwPacketFormatter.cpp

@@ -60,8 +60,8 @@ void RgbwPacketFormatter::updateHue(uint16_t value) {
 }
 
 void RgbwPacketFormatter::updateColorRaw(uint8_t value) {
-  currentPacket[RGBW_COLOR_INDEX] = value;
   command(RGBW_COLOR, 0);
+  currentPacket[RGBW_COLOR_INDEX] = value;
 }
 
 void RgbwPacketFormatter::updateColorWhite() {