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:
@ -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: ");
|
||||||
|
Reference in New Issue
Block a user