X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosConfigFC.java;h=db998278bd16571227a01602890cf208b3c081d5;hp=beff71b7279db119e094f10f8cae37688dfcae14;hb=refs%2Fheads%2Faccel-cal-ui;hpb=43e2275250d9c91560a770942f3c06a8f74ed501 diff --git a/altosui/AltosConfigFC.java b/altosui/AltosConfigFC.java index beff71b7..db998278 100644 --- a/altosui/AltosConfigFC.java +++ b/altosui/AltosConfigFC.java @@ -268,6 +268,14 @@ public class AltosConfigFC implements ActionListener { if (serial_line != null) serial_line.close(); } + else if (cmd.equals("Accel")) { + if (data.pad_orientation != AltosLib.MISSING) { + AltosUIAccelCal accel_ui = new AltosUIAccelCal(owner, serial_line); + if (accel_ui != null) + if (accel_ui.doit()) + config_ui.set_dirty(); + } + } } catch (InterruptedException ie) { abort(); } catch (TimeoutException te) {