   //Serial.println(number);
 
   // Split them up into r, g, b values
-  r1 = number >> 16;
-  g1 = number >> 8 & 0xFF;
-  b1 = number & 0xFF;
+  int r1 = number >> 16;
+  int g1 = number >> 8 & 0xFF;
+  int b1 = number & 0xFF;
   curRGB[0] = r1;
   curRGB[1] = g1;
   curRGB[2] = b1;
 }
 
-int tmpLast = 0;
+
 void setParsedRGB()
 {
   //analogWrite(r1Pin, gamma8[curRGB[0]] * 4);

#include "gammaTable.h"
#include "config.h" //set your SSID and pass here


#define DEBUG false //debug output
String Version = "v0.0.2";

const uint8_t r1Pin = D1,
              g1Pin = D2,

int value = 0;
String thisMAC = WiFi.macAddress();
String clientID = "RGB_controller_" + thisMAC;
bool otaInProgress = false;

String domain = "RGB-LED-control";

