 // 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()) {

	readDelayFirebase();

	delay(fb_delay);
}

// Lê do firebase: LED

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

StaticJsonBuffer<50> tsoBuffer;
JsonObject& timeStampObject = tsoBuffer.createObject();

StaticJsonBuffer<250> nodemcuBuffer;
JsonObject& nodemcuObject = nodemcuBuffer.createObject();

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