1
0
Fork 0

FG1000: Fix setting 7xxx transponder codes

Previously select XPDR->CODE->7 and then another number caused very odd
transponder codes.  Turns out this was due to extra whitespace in the
label causing various string concatenations and evaluations to fail.
This commit is contained in:
Stuart Buchanan 2020-08-21 12:38:31 +01:00
parent 45b97601f2
commit 8a7bc16829

View file

@ -291,7 +291,7 @@ var PFDInstruments =
pg.addMenuItem(4, "4", pg, pg.mfd.PFDInstruments.setTransponderDigit);
pg.addMenuItem(5, "5", pg, pg.mfd.PFDInstruments.setTransponderDigit);
pg.addMenuItem(6, "6", pg, pg.mfd.PFDInstruments.setTransponderDigit);
pg.addMenuItem(7, "7 ", pg, pg.mfd.PFDInstruments.setTransponderDigit);
pg.addMenuItem(7, "7", pg, pg.mfd.PFDInstruments.setTransponderDigit);
pg.addMenuItem(8, "IDENT", pg, pg.mfd.PFDInstruments.setIdent);
pg.addMenuItem(9, "BKSP", pg, pg.mfd.PFDInstruments.setTransponderDigit);
pg.addMenuItem(10, "BACK", pg, pg.mfd.PFDInstruments.transponderMenu);