Browse Source

misc

master
Robin Thoni 4 years ago
parent
commit
9a685a055e
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E
2 changed files with 1 additions and 4 deletions
  1. 1
    2
      AppCore.cpp
  2. 0
    2
      AppCore.h

+ 1
- 2
AppCore.cpp View File

@@ -199,11 +199,9 @@ void AppCore::loop()
199 199
     if (m_appCoreState.uiState.isUpdateNeeded)
200 200
     {
201 201
         printState();
202
-        m_appCoreState.uiState.isUpdateNeeded = false;
203 202
     }
204 203
 }
205 204
 
206
-
207 205
 void AppCore::setState(
208 206
         UiStateEnum state
209 207
 )
@@ -254,6 +252,7 @@ void AppCore::printState()
254 252
     m_lcd.setCursor(0, 1);
255 253
     printStateLine('C', m_appCoreState.appState.heater, m_appCoreState.uiState.state == HeaterSetting,
256 254
                    m_appCoreState.appState.heater.isActive);
255
+    m_appCoreState.uiState.isUpdateNeeded = false;
257 256
 }
258 257
 
259 258
 void

+ 0
- 2
AppCore.h View File

@@ -52,5 +52,3 @@ private:
52 52
     DallasTemperature m_sensors;
53 53
     DeviceAddress m_sensor1;
54 54
 };
55
-
56
-

Loading…
Cancel
Save