Skip to content

Commit

Permalink
O_TRUNC flag defined if missing
Browse files Browse the repository at this point in the history
Signed-off-by: Fabiano Riccardi <[email protected]>
  • Loading branch information
Fabiano Riccardi committed Aug 1, 2019
1 parent fafafec commit de0cdd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/logger_sd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#include "logger_sd.h"
#include "SD.h"

#ifndef O_TRUNC
#define O_TRUNC 0x0400
#endif

bool LoggerSD::append(String message, bool timestamp){
unsigned int total=0;

Expand Down

0 comments on commit de0cdd6

Please sign in to comment.