Skip to content

Commit d99a60d

Browse files
committed
reformat code
1 parent fa74157 commit d99a60d

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

src/main.cpp

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void hardReset()
204204

205205
ESP.restart();
206206

207-
//WiFiSettings.portal();
207+
// WiFiSettings.portal();
208208
}
209209

210210
void goSleep(unsigned long seconds)
@@ -247,7 +247,6 @@ void processingMessage(String channel, DynamicJsonDocument doc)
247247
{
248248
bool turnOn = doc["on"].as<bool>();
249249
uint8_t command = turnOn ? SSD1306_DISPLAYON : SSD1306_DISPLAYOFF;
250-
251250
display.ssd1306_command(command);
252251
}
253252
else if (channel.equals("hard-reset"))
@@ -341,14 +340,12 @@ void setupOTA()
341340
display.setTextSize(1);
342341
display.print("updating...");
343342

344-
display.display();
345-
})
343+
display.display(); })
346344
.onEnd([]()
347345
{
348346
Serial.println("\nEnd");
349347

350-
isUpdating = false;
351-
})
348+
isUpdating = false; })
352349
.onProgress([](unsigned int progress, unsigned int total)
353350
{
354351
unsigned int percentValue = progress / (total / 100);
@@ -366,8 +363,7 @@ void setupOTA()
366363
display.print(percentValue);
367364
display.print("%");
368365

369-
display.display();
370-
})
366+
display.display(); })
371367
.onError([](ota_error_t error)
372368
{
373369
Serial.printf("Error[%u]: ", error);
@@ -391,8 +387,7 @@ void setupOTA()
391387
else if (error == OTA_END_ERROR)
392388
{
393389
Serial.println("End Failed");
394-
}
395-
})
390+
} })
396391
.begin();
397392
}
398393

@@ -436,10 +431,10 @@ void setup()
436431
Serial.begin(115200);
437432
Serial2.begin(9600);
438433

439-
//co2Sensor.setDebug(true);
434+
// co2Sensor.setDebug(true);
440435

441436
SPIFFS.begin(true); // On first run, will format after failing to mount
442-
//SPIFFS.format(); // TODO reset config on connection MQTT fail
437+
// SPIFFS.format(); // TODO reset config on connection MQTT fail
443438

444439
setupTimers();
445440

@@ -462,7 +457,6 @@ void setup()
462457
{
463458
ArduinoOTA.handle();
464459
};
465-
466460
WiFiSettings.onConfigSaved = []()
467461
{
468462
ESP.restart();

0 commit comments

Comments
 (0)