diff --git a/TouchControllerWS.cpp b/TouchControllerWS.cpp index 9d3beea..e249554 100644 --- a/TouchControllerWS.cpp +++ b/TouchControllerWS.cpp @@ -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) { diff --git a/esp8266-weather-station-color.ino b/esp8266-weather-station-color.ino index 2ecf9e5..fd52791 100644 --- a/esp8266-weather-station-color.ino +++ b/esp8266-weather-station-color.ino @@ -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();