AVR-based products don't have a valid serial number, and so usually
report 0. Accept this by making the 'no serial number' case check for
negative values.
Signed-off-by: Keith Packard <keithp@keithp.com>
radio_setting = 0;
radio_frequency = 0;
stored_flight = 0;
radio_setting = 0;
radio_frequency = 0;
stored_flight = 0;
for (;;) {
String line = link.get_reply();
if (line == null)
for (;;) {
String line = link.get_reply();
if (line == null)
done = false;
start = true;
done = false;
start = true;
- if (flights.config_data.serial == 0)
+ if (flights.config_data.serial < 0)
throw new IOException("no serial number found");
/* Reset per-capture variables */
throw new IOException("no serial number found");
/* Reset per-capture variables */