More attempts to keep screen from freezing

This commit is contained in:
Paul Warren 2020-01-05 13:32:16 +11:00
parent 3c32ca51cb
commit b8b4bf1fd2

View file

@ -291,10 +291,6 @@ void weatherUpdate(void) {
current_bedroom = current["bedroom"]; current_bedroom = current["bedroom"];
current_lounge = current["lounge"]; current_lounge = current["lounge"];
Serial.println(current_outside);
Serial.println(current_lounge);
Serial.println(current_bedroom);
Serial.println("Updating EPD with weather"); Serial.println("Updating EPD with weather");
epd_set_en_font(ASCII64); epd_set_en_font(ASCII64);
@ -345,7 +341,7 @@ void loop() {
ntpUpdate(); ntpUpdate();
if (second(now()) >= wakeup_seconds) { if (second(now()) >= wakeup_seconds) {
epd_wakeup(); //epd_wakeup();
epd_clear(); epd_clear();
weatherUpdate(); weatherUpdate();
Serial.print("Weather details sent: "); Serial.print("Weather details sent: ");
@ -357,7 +353,7 @@ void loop() {
printDateTime(1); printDateTime(1);
epd_update(); epd_update();
delay(3000); delay(3000);
epd_enter_stopmode(); //epd_enter_stopmode();
} }