X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosConfigFC.java;h=5e2aa7f4ef405470c0106a3255fb9a7bf8399e55;hp=beff71b7279db119e094f10f8cae37688dfcae14;hb=78a90fc760b88ab66c5c238289afc38356e29d8a;hpb=198a3d4d5f51de5c0f0413299582479cde4e177f diff --git a/altosui/AltosConfigFC.java b/altosui/AltosConfigFC.java index beff71b7..5e2aa7f4 100644 --- a/altosui/AltosConfigFC.java +++ b/altosui/AltosConfigFC.java @@ -268,6 +268,13 @@ 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, config_ui); + if (accel_ui != null) + accel_ui.doit(); + } + } } catch (InterruptedException ie) { abort(); } catch (TimeoutException te) {