mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
Remove automatic backup
This commit is contained in:
parent
db84fbed5d
commit
4a9f6ceb55
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user