1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-02 14:22:55 +03:00

avoid printing nullptr string (#7144)

This commit is contained in:
david gauchard
2020-03-14 15:34:04 +01:00
committed by GitHub
parent 845241b72c
commit afb9921d38

View File

@ -134,7 +134,7 @@ void showTime() {
Serial.println((uint32_t)now); Serial.println((uint32_t)now);
// timezone and demo in the future // timezone and demo in the future
Serial.printf("timezone: %s\n", getenv("TZ")); Serial.printf("timezone: %s\n", getenv("TZ") ? : "(none)");
// human readable // human readable
Serial.print("ctime: "); Serial.print("ctime: ");