- serial_line.printf("c m %d\n", main_deploy.get());
- serial_line.printf("c d %d\n", apogee_delay.get());
- if (!remote)
- serial_line.printf("c f %d\n", radio_calibration.get());
- serial_line.set_radio_frequency(frequency,
- has_setting,
- radio_calibration.get());
- if (remote) {
- serial_line.stop_remote();
- serial_line.set_radio_frequency(frequency,
- has_setting,
- radio_calibration.get());
- AltosPreferences.set_frequency(device.getSerial(), frequency);
- serial_line.start_remote();
- }
- serial_line.printf("c c %s\n", callsign.get());
- if (flight_log_max.get() != 0)
- serial_line.printf("c l %d\n", flight_log_max.get());
- if (ignite_mode.get() >= 0)
- serial_line.printf("c i %d\n", ignite_mode.get());
- if (pad_orientation.get() >= 0)
- serial_line.printf("c o %d\n", pad_orientation.get());
- serial_line.printf("c w\n");
+ data.save(serial_line, remote);
+ if (remote)
+ AltosUIPreferences.set_frequency(device.getSerial(),
+ data.frequency());