refactor: improve handling for old firmware

pull/1362/head
andrekir 2024-10-29 07:41:39 -03:00
rodzic 0832803c84
commit 1e081b4b30
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -1611,8 +1611,9 @@ class MeshService : Service(), Logging {
if (deviceVersion < minDeviceVersion || appVersion < minAppVersion) {
info("Device firmware or app is too old, faking config so firmware update can occur")
clearLocalConfig()
setLocalConfig(config { security = security.copy { isManaged = true } })
setLocalConfig(config {
security = localConfig.security.copy { isManaged = true }
})
}
onHasSettings()
}

Wyświetl plik

@ -165,7 +165,7 @@ private fun NodeDetailsItemList(
NavCard(
title = "Remote Administration",
icon = Icons.Default.Settings,
enabled = !metricsState.isManaged || !node.user.isLicensed
enabled = !metricsState.isManaged
) {
onNavigate("RadioConfig")
}