main/co2meter.c

changeset 22
cceb36fd3a2a
parent 21
043ae27633f8
child 23
58a328e91881
--- a/main/co2meter.c	Tue Nov 05 11:31:59 2019 +0100
+++ b/main/co2meter.c	Thu Nov 07 11:47:15 2019 +0100
@@ -186,8 +186,7 @@
 		case ML1_CONNECT:
                     if (ready_WiFi()) {
                         Main_Loop1 = ML1_MQTT_CONNECT;
-//			if (Main_Loop2 == ML2_WIFI)
-//			    screen_wifi();
+			user_refresh();
 		    }
                     break;
 
@@ -239,12 +238,6 @@
 			    write_units();
 			    xSemaphoreGive(xSemaphoreUnits);
 			    user_refresh();
-//			    switch (Main_Loop2) {
-//				case ML2_USER:	screen_main(); break;
-//				case ML2_UNIT1:	screen_unit(0); break;
-//				case ML2_UNIT2: screen_unit(1); break;
-//				case ML2_UNIT3: screen_unit(2); break;
-//			    }
 			}
 		    }
 		    break;
@@ -285,8 +278,7 @@
 		    if (! ready_WiFi()) {
 			ESP_LOGI(TAG, "Loop timer: Done %s", user_busy() ? "true":"false");
 			Main_Loop1 = ML1_DONE;
-//			if (Main_Loop2 == ML2_WIFI)
-//			    screen_wifi();
+			user_refresh();
 		    }
 		    break;
 

mercurial