Skip to content

Commit

Permalink
diabling debug and fixing OOM issue with date
Browse files Browse the repository at this point in the history
  • Loading branch information
romanini committed Jul 27, 2024
1 parent 7ca35bc commit 5e4b189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Arduino/display/display.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#endif
//#include <MemoryFree.h>

#define DEBUG_ENABLED 1
#define DEBUG_ENABLED 0
#if DEBUG_ENABLED
#define DEBUG_PRINT(x) Serial.print(x)
#define DEBUG_PRINT2(x, y) Serial.print(x, y)
Expand Down
2 changes: 1 addition & 1 deletion Arduino/display/screen.ino
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void display_datetime() {
date_time_value_canvas.setFont(&FreeSansBold12pt7b);
date_time_value_canvas.setCursor(0, 18);
if (autoPilot.hasFix()) {
char dateTimeString[13];
char dateTimeString[16];
sprintf(dateTimeString, "%d/%d/%02d %d:%02d", autoPilot.getMonth(), autoPilot.getDay(), autoPilot.getYear() % 100, autoPilot.getHour(), autoPilot.getMinute());
date_time_value_canvas.print(dateTimeString);
} else {
Expand Down

0 comments on commit 5e4b189

Please sign in to comment.