From 2903c6a38ba127f085cb065983aad083945ab216 Mon Sep 17 00:00:00 2001 From: Steffen Windoffer Date: Wed, 30 Nov 2016 19:30:52 +0100 Subject: [PATCH] fix sensorTypeNames guard --- src/main/io/serial_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/io/serial_cli.c b/src/main/io/serial_cli.c index 4fedfec5e..bedcbe706 100755 --- a/src/main/io/serial_cli.c +++ b/src/main/io/serial_cli.c @@ -244,7 +244,7 @@ static const rxFailsafeChannelMode_e rxFailsafeModesTable[RX_FAILSAFE_TYPE_COUNT { RX_FAILSAFE_MODE_INVALID, RX_FAILSAFE_MODE_HOLD, RX_FAILSAFE_MODE_SET } }; -#if (FLASH_SIZE > 64) +#if (FLASH_SIZE > 64) && !defined(CLI_MINIMAL_VERBOSITY) // sync this with sensors_e static const char * const sensorTypeNames[] = { "GYRO", "ACC", "BARO", "MAG", "SONAR", "GPS", "GPS+MAG", NULL @@ -3978,7 +3978,7 @@ static void cliResource(char *cmdline) pin = atoi(pch); if (pin < 16) { ioRec_t *rec = IO_Rec(IOGetByTag(DEFIO_TAG_MAKE(port, pin))); - if (rec) { + if (rec) { #ifndef CLI_MINIMAL_VERBOSITY if (!resourceCheck(resourceIndex, index, DEFIO_TAG_MAKE(port, pin))) { return;