 // Atualiza do firebase: LED
 void updateFirebase(){
 	if(!alterado) return;
-	Firebase.setBool("LED", !led_status);
+  bool ls = !led_status;
+	Firebase.setBool("LED", ls);
 	Serial.print("Definindo LED no firebase: ");
 	Serial.println(!led_status);
 	if (Firebase.failed()) {

volatile bool led_status, alterado = false;
volatile int fb_delay = 1000, prev_delay = 1000;

void setup() {
	Serial.begin(115200);
  wifinder.setLed(LED_PIN);

	readDelayFirebase();

	delay(fb_delay);
}

// Inicializa conteudo statico dos jsons
void initJSONs(){
  timeStampObject[".sv"] = "timestamp";
  nodemcuObject["photoURL"] = "https://cknodemcu.files.wordpress.com/2015/10/nodemcu2.png?w=150";
  nodemcuObject["displayName"] = "NodeMCU";
  nodemcuObject["date"] = timeStampObject;
}

// Lê do firebase: LED
