altoslib: Deal with reflashing EasyMega boards with ancient firmware
authorKeith Packard <keithp@keithp.com>
Sun, 23 Aug 2020 22:32:57 +0000 (15:32 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 23 Aug 2020 22:32:57 +0000 (15:32 -0700)
commit2289fd36f7ba76692fe07d2ebc8d7eda33750180
tree9ae397fd87b2028ad8aa8de8ea0918e297b20415
parent335e40873c238a67cea2c63d62b73fd9d29e94d2
altoslib: Deal with reflashing EasyMega boards with ancient firmware

Ancient EasyMega firmware included radio calibration data in the
romconfig bits, which has since been removed. That means the config
data from those boards will be at a different location than current
firmware. Deal with that by poking around in firmware looking for
valid bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosHexfile.java
altoslib/AltosRomconfig.java