Fix console formatting glitches (#99)

This commit is contained in:
WJCarpenter
2019-02-10 15:48:29 -08:00
committed by Marcel Stör
parent ba74e3c2a8
commit 086416bd62
2 changed files with 4 additions and 3 deletions

View File

@@ -7,9 +7,10 @@ TouchControllerWS::TouchControllerWS(XPT2046_Touchscreen *touchScreen) {
bool TouchControllerWS::loadCalibration() {
// always use this to "mount" the filesystem
bool result = SPIFFS.begin();
Serial.println("SPIFFS opened: " + result);
Serial.print("SPIFFS opened: ");
Serial.println(result ? "OK" : "Failed");
// this opens the file "f.txt" in read-mode
// this opens the file in read-mode
File f = SPIFFS.open("/calibration.txt", "r");
if (!f) {

View File

@@ -281,7 +281,7 @@ void updateData() {
}
// calculate for time calculation how much the dst class adds.
dstOffset = UTC_OFFSET * 3600 + dstAdjusted.time(nullptr) - time(nullptr);
Serial.printf("Time difference for DST: %d", dstOffset);
Serial.printf("Time difference for DST: %d\n", dstOffset);
drawProgress(50, "Updating conditions...");
OpenWeatherMapCurrent *currentWeatherClient = new OpenWeatherMapCurrent();