Skip to content

Commit

Permalink
Check for valid month in listfiles printTime
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Dec 22, 2021
1 parent e49c7ba commit 6059a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/listfiles/listfiles.ino
Expand Up @@ -106,7 +106,7 @@ void printTime(const DateTimeFields tm) {
if (tm.min < 10) Serial.print('0');
Serial.print(tm.min);
Serial.print(" ");
Serial.print(months[tm.mon]);
Serial.print(tm.mon < 12 ? months[tm.mon] : "???");
Serial.print(" ");
Serial.print(tm.mday);
Serial.print(", ");
Expand Down

0 comments on commit 6059a9b

Please sign in to comment.