diff options
author | Keith Packard <keithp@keithp.com> | 2018-10-02 17:03:28 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-10-02 17:03:28 -0700 |
commit | c2c7873695ee2dc1b6fd153b67accad9693937aa (patch) | |
tree | fa7ff1d67ae6d74b4e775c09fa5771dbdf1aa187 /altosuilib/AltosFlashUI.java | |
parent | d5b9fd5b3dd8c8b3bfb478d366ba07501085c1b3 (diff) |
altosui: Fetch RF calibration value for TBT v4.0 units from web
We shipped a pile of TBT v4.0 units without programming the RF
calibration value into flash. This change checks to see if the target
is in the right serial number range and has the default RF calibration
value, in which case it fetches the RF calibration value from our web
site.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosFlashUI.java')
-rw-r--r-- | altosuilib/AltosFlashUI.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/altosuilib/AltosFlashUI.java b/altosuilib/AltosFlashUI.java index 6c9cae52..b91776aa 100644 --- a/altosuilib/AltosFlashUI.java +++ b/altosuilib/AltosFlashUI.java @@ -325,6 +325,17 @@ public class AltosFlashUI return false; } + if (existing_config.radio_calibration_broken) { + int ret = JOptionPane.showConfirmDialog(this, + String.format("Radio calibration value %d may be incorrect\nFlash anyways?", + existing_config.radio_calibration), + "Radio Calibration Invalid", + JOptionPane.YES_NO_OPTION); + if (ret != JOptionPane.YES_OPTION) + return false; + } + + new_config = AltosRomconfigUI.show(frame, existing_config); if (new_config == null) return false; |