Skip to content

Commit 0dd6b59

Browse files
committed
Add support for ExFat formatted cards (512GB!). Add change log. Roll version #.
1 parent 705851e commit 0dd6b59

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Change Log
2+
======================
3+
4+
v1.1
5+
---------
6+
7+
* Added support for exFat microSD cards. Tested up to 512GB. We still suppport smaller FAT16 and FAT32 formatted cards.
8+
9+
v1.0
10+
---------
11+
Initial release. Support for
12+
13+
*

Firmware/OpenLog_Artemis/OpenLog_Artemis.ino

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
*/
1919

20-
const float FIRMWARE_VERSION = 1.0;
20+
const float FIRMWARE_VERSION = 1.1;
2121

2222
#include "settings.h"
2323

@@ -54,9 +54,16 @@ const byte PIN_MICROSD_POWER = 15; //x04
5454
#define SD_CONFIG SdSpiConfig(PIN_MICROSD_CHIP_SELECT, SHARED_SPI, SD_SCK_MHZ(24)) //Max of 24MHz
5555
#define SD_CONFIG_MAX_SPEED SdSpiConfig(PIN_MICROSD_CHIP_SELECT, DEDICATED_SPI, SD_SCK_MHZ(24)) //Max of 24MHz
5656

57-
SdFat sd;
58-
File sensorDataFile; //File that all sensor data is written to
59-
File serialDataFile; //File that all incoming serial data is written to
57+
//ExFat
58+
SdFs sd;
59+
FsFile sensorDataFile; //File that all sensor data is written to
60+
FsFile serialDataFile; //File that all incoming serial data is written to
61+
62+
//Fat16/32
63+
//SdFat sd;
64+
//File sensorDataFile; //File that all sensor data is written to
65+
//File serialDataFile; //File that all incoming serial data is written to
66+
6067
char sensorDataFileName[30] = ""; //We keep a record of this file name so that we can re-open it upon wakeup from sleep
6168
char serialDataFileName[30] = ""; //We keep a record of this file name so that we can re-open it upon wakeup from sleep
6269
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Firmware/OpenLog_Artemis/logging.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ char* findNextAvailableLog(int &newFileNumber, const char *fileLeader)
2525
if (sd.exists(newFileName) == false) break; //File name not found so we will use it.
2626

2727
//File exists so open and see if it is empty. If so, use it.
28-
newFile = sd.open(newFileName, O_READ);
28+
newFile.open(newFileName, O_READ);
2929
if (newFile.size() == 0) break; // File is empty so we will use it.
3030

3131
newFile.close(); // Close this existing file we just opened.

Firmware/OpenLog_Artemis/nvm.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void recordSettingsToFile()
4646
if (sd.exists("OLA_settings.cfg"))
4747
sd.remove("OLA_settings.cfg");
4848

49-
File settingsFile;
49+
FsFile settingsFile;
5050
if (settingsFile.open("OLA_settings.cfg", O_CREAT | O_APPEND | O_WRITE) == false)
5151
{
5252
Serial.println("Failed to create settings file");
@@ -105,7 +105,7 @@ bool loadSettingsFromFile()
105105
{
106106
if (sd.exists("OLA_settings.cfg"))
107107
{
108-
File settingsFile;
108+
FsFile settingsFile;
109109
if (settingsFile.open("OLA_settings.cfg", O_READ) == false)
110110
{
111111
Serial.println("Failed to open settings file");

0 commit comments

Comments
 (0)