I have written a C program that polls data from sensors and writes it line by line to a csv file. This used to work fine but recently the program seems to 'freeze' in the middle of writing a new line.
An example of the code I use to write data is shown below.
fprintf(file, " %.5f, %.5f, %.5f,", IMU_data.acceleration, IMU_data.acceleration, IMU_data.acceleration);
This is just about all I know about the issue at this moment. Does this sound like a memory issue or something similar?