From 64a0bb82410ef43ceb76cb33b380766cf7e955a3 Mon Sep 17 00:00:00 2001 From: mikeller Date: Fri, 12 Feb 2016 22:49:08 +1300 Subject: [PATCH] Added Aux / Adjustment range / RX range to 'dump master' output. --- src/main/io/serial_cli.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/main/io/serial_cli.c b/src/main/io/serial_cli.c index 6f809f1f6a..b24799971d 100644 --- a/src/main/io/serial_cli.c +++ b/src/main/io/serial_cli.c @@ -1794,6 +1794,36 @@ static void cliDump(char *cmdline) cliPrint("\r\n\r\n# color\r\n"); cliColor(""); #endif + + cliPrint("\r\n# aux\r\n"); + + cliAux(""); + + cliPrint("\r\n# adjrange\r\n"); + + cliAdjustmentRange(""); + + cliPrintf("\r\n# rxrange\r\n"); + + cliRxRange(""); + +#ifdef USE_SERVOS + cliPrint("\r\n# servo\r\n"); + + cliServo(""); + + // print servo directions + unsigned int channel; + + for (i = 0; i < MAX_SUPPORTED_SERVOS; i++) { + for (channel = 0; channel < INPUT_SOURCE_COUNT; channel++) { + if (servoDirection(i, channel) < 0) { + cliPrintf("smix reverse %d %d r\r\n", i , channel); + } + } + } +#endif + printSectionBreak(); dumpValues(MASTER_VALUE);