A set of data recording functions to locally store data in a circular buffer, with functions for offloading to an SD Card when convenient. dataRecorderr.h shows accessible functions to the main program - all direct SD operations are abstracted away by the library. When using this library, #include dataRecorder.h
Dependencies: sd-driver_compatible_with_MAX32630FTHR
Fork of CircularBufferSDCardLib by
Diff: sdCardReader.cpp
- Revision:
- 6:a36eda5701df
- Parent:
- 5:0a4ff027086c
- Child:
- 12:c09a50d9469a
diff -r 0a4ff027086c -r a36eda5701df sdCardReader.cpp --- a/sdCardReader.cpp Thu Apr 05 04:08:32 2018 -0400 +++ b/sdCardReader.cpp Thu Apr 05 04:21:25 2018 -0400 @@ -154,7 +154,7 @@ for (unsigned int i = 0; i < data.size()-1; i++) { write_uint16_t(data[i], false, theFile); } - write_uint16_t(data[data.size()], true, theFile); + write_uint16_t(data[data.size()-1], true, theFile); return 0; }