Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 71:4747e63eb48c
- Parent:
- 70:e6cc44d1487d
- Child:
- 72:fad84371f431
--- a/main.cpp Wed Oct 12 11:57:45 2022 +0000 +++ b/main.cpp Wed Oct 12 12:03:11 2022 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" #include "m3pi.h" +#include <cstdio> m3pi m3pi; @@ -233,7 +234,7 @@ if ((fptr = fopen(PITLOGPATH,"r")) == NULL){ fptr = fopen(PITLOGPATH,"w"); fprintf(fptr,"%d", 0); - fclose(); + fclose(fptr); } }