diff --git a/software/firmware/source/SoftRF/SoftRF.h b/software/firmware/source/SoftRF/SoftRF.h index f6e479c69..e0a346ddc 100644 --- a/software/firmware/source/SoftRF/SoftRF.h +++ b/software/firmware/source/SoftRF/SoftRF.h @@ -39,6 +39,8 @@ #define LED_EXPIRATION_TIME 5 /* seconds */ #define EXPORT_EXPIRATION_TIME 5 /* seconds */ +#define SETTINGS_JSON_PATH "/settings.json" + /* * If you need for SoftRF to operate in wireless * client mode - specify your local AP's SSID/PSK: diff --git a/software/firmware/source/SoftRF/src/platform/ESP32.cpp b/software/firmware/source/SoftRF/src/platform/ESP32.cpp index e1b5fc96b..3f3678884 100644 --- a/software/firmware/source/SoftRF/src/platform/ESP32.cpp +++ b/software/firmware/source/SoftRF/src/platform/ESP32.cpp @@ -2509,7 +2509,7 @@ static void ESP32_EEPROM_extension(int cmd) if (cmd == EEPROM_EXT_LOAD) { #if defined(CONFIG_IDF_TARGET_ESP32S3) if ( ESP32_has_spiflash && FATFS_is_mounted ) { - File32 file = fatfs.open("/settings.json", FILE_READ); + File32 file = fatfs.open(SETTINGS_JSON_PATH, FILE_READ); if (file) { // StaticJsonBuffer ESP32_jsonBuffer; diff --git a/software/firmware/source/SoftRF/src/platform/RP2040.cpp b/software/firmware/source/SoftRF/src/platform/RP2040.cpp index 84805b8fc..8dd458684 100644 --- a/software/firmware/source/SoftRF/src/platform/RP2040.cpp +++ b/software/firmware/source/SoftRF/src/platform/RP2040.cpp @@ -731,7 +731,7 @@ static void RP2040_EEPROM_extension(int cmd) if (cmd == EEPROM_EXT_LOAD) { if ( RP2040_has_spiflash && FATFS_is_mounted ) { - File32 file = fatfs.open("/settings.json", FILE_READ); + File32 file = fatfs.open(SETTINGS_JSON_PATH, FILE_READ); if (file) { // StaticJsonBuffer RP2040_jsonBuffer; diff --git a/software/firmware/source/SoftRF/src/platform/nRF52.cpp b/software/firmware/source/SoftRF/src/platform/nRF52.cpp index 0bd52ffaf..d554fb1bf 100644 --- a/software/firmware/source/SoftRF/src/platform/nRF52.cpp +++ b/software/firmware/source/SoftRF/src/platform/nRF52.cpp @@ -1189,7 +1189,7 @@ static void nRF52_EEPROM_extension(int cmd) } if ( nRF52_has_spiflash && FATFS_is_mounted ) { - File32 file = fatfs.open("/settings.json", FILE_READ); + File32 file = fatfs.open(SETTINGS_JSON_PATH, FILE_READ); if (file) { // StaticJsonBuffer nRF52_jsonBuffer;