diff --git a/src/mesh/Default.h b/src/mesh/Default.h index 9e6efcb09..d39886d1c 100644 --- a/src/mesh/Default.h +++ b/src/mesh/Default.h @@ -7,9 +7,6 @@ #define THIRTY_SECONDS_MS 30 * 1000 #define FIVE_SECONDS_MS 5 * 1000 -// Backup after the first 5 minutes -#define AUTOMATIC_BACKUP_MS 5 * 60 * 1000 - #define min_default_telemetry_interval_secs 30 * 60 #define default_gps_update_interval IF_ROUTER(ONE_DAY, 2 * 60) #define default_telemetry_broadcast_interval_secs IF_ROUTER(ONE_DAY / 2, 60 * 60) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 15dcf34a7..4857b2842 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -1587,20 +1587,6 @@ UserLicenseStatus NodeDB::getLicenseStatus(uint32_t nodeNum) return info->user.is_licensed ? UserLicenseStatus::Licensed : UserLicenseStatus::NotLicensed; } -// bool NodeDB::shouldAutoPerformBackup() -// { -// // Already backed up -// if (lastBackupAttempt > 0) -// return false; -// // Not enough time has passed -// if (millis() - lastBackupAttempt < AUTOMATIC_BACKUP_MS) { -// return false; -// } - -// // If a LoRa region is set, assume the device is setup -// return config.lora.region != meshtastic_Config_LoRaConfig_RegionCode_UNSET; -// } - bool NodeDB::backupPreferences(meshtastic_AdminMessage_BackupLocation location) { bool success = false;