make 1.2 firmware update work even for old 1.0 devices

This commit is contained in:
Kevin Hester 2021-03-19 22:49:51 +08:00
parent bfdf4a661a
commit 54bf0e85c1
2 changed files with 11 additions and 15 deletions

View file

@ -668,8 +668,7 @@ class MainActivity : AppCompatActivity(), Logging,
else {
val curVer = DeviceVersion(info.firmwareVersion ?: "0.0.0")
val minVer = DeviceVersion("1.2.0")
if (curVer < minVer)
if (curVer < MeshService.minFirmwareVersion)
showAlert(R.string.firmware_too_old, R.string.firmware_old)
else {
// If our app is too old/new, we probably don't understand the new radioconfig messages, so we don't read them until here