X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsensor.h;h=ae17ce3153e232a1d66e1b53957a4dcd0f655636;hb=97d3625dcb84e6371d2464c93ae9bef8a3d4b466;hp=e51ab0c5579e7abd0fc2424cb5463044a69c038d;hpb=0b95dfaf594f4e6866ff8e18040c62382cad7d08;p=matches%2FMCTX3420.git diff --git a/server/sensor.h b/server/sensor.h index e51ab0c..ae17ce3 100644 --- a/server/sensor.h +++ b/server/sensor.h @@ -14,11 +14,10 @@ /** Number of data points to keep in sensor buffers **/ #define SENSOR_DATABUFSIZ 10 + /** Number of sensors **/ #define NUMSENSORS 1 -#define FILENAMESIZE 10 - /** Structure to represent data recorded by a sensor at an instant in time **/ typedef struct { @@ -40,7 +39,7 @@ typedef struct /** Offset position in binary file for query thread to read from**/ int read_offset; /** File to write data into when buffer is full **/ - char filename[FILENAMESIZE]; + FILE * file; /** Thread running the sensor **/ pthread_t thread; /** Mutex to protect access to stuff **/