Work on user based control
[matches/MCTX3420.git] / server / actuators / filetest.c
index 697753a..8dcc9df 100644 (file)
@@ -4,8 +4,10 @@ static FILE * f = NULL;
 bool Filetest_Init(const char * name, int id)
 {
        f = fopen(name, "w");
+       if (f == NULL)
+               return false;
        setbuf(f, NULL); // Unbuffer
-       return (f != NULL);
+       return true;
 }
 
 bool Filetest_Set(int id, double value)

UCC git Repository :: git.ucc.asn.au