Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GyverLibs committed Nov 12, 2021
1 parent 5e91c30 commit 7a36b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/DS3231_demo/DS3231_demo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ void loop() {
Serial.println(rtc.getDateString());

// вывод времени через char array
char time[8];
char time[9]; // буфер минимум на 9 символов (8 данные + 1 нулевой)
rtc.getTimeChar(time);
Serial.println(time);

// вывод даты через char array
char date[10];
char date[11]; // буфер минимум на 11 символов (10 данные + 1 нулевой)
rtc.getDateChar(date);
Serial.println(date);

Expand Down

0 comments on commit 7a36b68

Please sign in to comment.