File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ WidgetLCD lcd(LCD_PIN);
67
67
CloudState cloud_state;
68
68
WiFiClient client;
69
69
WeatherType current_weather;
70
- unsigned long time ;
70
+ unsigned long timestamp ;
71
71
bool force_update;
72
72
uint8_t color_r;
73
73
uint8_t color_g;
@@ -99,7 +99,7 @@ void setup() {
99
99
// Define initial state
100
100
cloud_state = CLOUD_WEATHER;
101
101
setLEDs ();
102
- time = millis ();
102
+ timestamp = millis ();
103
103
force_update == false ;
104
104
color_r = 0 ;
105
105
color_g = 0 ;
@@ -224,9 +224,9 @@ void sendDisco() {
224
224
void doWeather () {
225
225
226
226
// Only update every 30 seconds
227
- if ( ((millis () - time ) >= 30000 ) || force_update ) {
227
+ if ( ((millis () - timestamp ) >= 30000 ) || force_update ) {
228
228
force_update = false ;
229
- time = millis ();
229
+ timestamp = millis ();
230
230
lcd.clear ();
231
231
lcd.print (0 , 0 , " WEATHER" );
232
232
You can’t perform that action at this time.
0 commit comments