Add todo note

This commit is contained in:
Starbeamrainbowlabs 2019-06-26 19:34:29 +01:00
parent cf2af7668e
commit 151b9544f2
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ SdFat* card = NULL;
void store_reading(uint32_t id, GPSLocation location) { void store_reading(uint32_t id, GPSLocation location) {
SdFat card; SdFat card;
card.begin() card.begin(PIN_SPI_CS_SD);
// Port the rest of this to SdFat from SD
// Open the file to write the data to. If it doesn't exist it will be created. // Open the file to write the data to. If it doesn't exist it will be created.
// Unlike elsewhere, FILE_WRITE opens the file with the cursor starting at the end, so it's basically actually equivalent to FILE_APPEND that we use in other environments. Confusing, I know. // Unlike elsewhere, FILE_WRITE opens the file with the cursor starting at the end, so it's basically actually equivalent to FILE_APPEND that we use in other environments. Confusing, I know.
File handle = SD.open(SD_FILENAME, FILE_WRITE); File handle = SD.open(SD_FILENAME, FILE_WRITE);