Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

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);
     }
     
 }