diff options
author | Keith Packard <keithp@keithp.com> | 2018-04-25 23:07:46 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-04-26 19:24:21 -0700 |
commit | b3474fb33a58e78b3b8f36958dd44768e49f3edc (patch) | |
tree | d336313a8a92251ae60864930f4c2ec73b7822b5 /altoslib/AltosAccelCal.java | |
parent | 0d691170a96545a9e57aad454de87541cea8c292 (diff) |
altoslib: Flush settings restoration commands after accel cal
To avoid mangling settings when the user doesn't 'save' things,
restore the original accel cal values and orientation after finishing
accelerometer calibration.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosAccelCal.java')
-rw-r--r-- | altoslib/AltosAccelCal.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/altoslib/AltosAccelCal.java b/altoslib/AltosAccelCal.java index 03d9fbf2..75592d9e 100644 --- a/altoslib/AltosAccelCal.java +++ b/altoslib/AltosAccelCal.java @@ -183,6 +183,7 @@ public class AltosAccelCal implements Runnable { if (config_data.accel_cal_plus != AltosLib.MISSING && config_data.accel_cal_minus != AltosLib.MISSING) link.printf("c a %d %d\n", config_data.accel_cal_plus, config_data.accel_cal_minus); + link.flush_output(); stop_link(); } if (new_config != null) { |