altosuilib: Zap all flash when upgrading TeleGPS from pre-1.9.7
authorKeith Packard <keithp@keithp.com>
Tue, 18 May 2021 06:09:29 +0000 (23:09 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 19 May 2021 05:53:51 +0000 (22:53 -0700)
commita575eebbf87243c3a314929a2469db5bac0c7b42
tree95c8cd7338ef2bb19995f3b6c014abefa00e7034
parent565778b66e59069fc6a6d6518f28354eae954dc1
altosuilib: Zap all flash when upgrading TeleGPS from pre-1.9.7

Old versions of TeleGPS firmware would end up spraying log data all
over flash as they mis-computed the place to append new log data.

When the right hardware is detected, a warning dialog will pop up and,
if agreed to, the log storage flash will be completely erased before
the firmware upgrade happens.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosLink.java
altosuilib/AltosFlashUI.java