mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
make 1.2 firmware update work even for old 1.0 devices
This commit is contained in:
parent
bfdf4a661a
commit
54bf0e85c1
2 changed files with 11 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue