Skip to content

Commit

Permalink
Fixed logfile printf
Browse files Browse the repository at this point in the history
  • Loading branch information
David Morris committed May 20, 2013
1 parent 3786f91 commit b913e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwr.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void disable_pin() {
void shutdown_filesystem() {
char c[]="\r\nLogger turned off\r\n";
uint8_t a;
f_write(&FATFS_logfile,c,sizeof(c),&a); //Write the error to the file
f_write(&FATFS_logfile,c,strlen(c),&a); //Write the error to the file
f_sync(&FATFS_logfile); //Flush buffers
f_truncate(&FATFS_logfile); //Truncate the lenght - fix pre allocation
f_close(&FATFS_logfile); //Close any opened file
Expand Down

0 comments on commit b913e39

Please sign in to comment.