From 441b0c4e9836adf2734f0a3db78a7459054eaf63 Mon Sep 17 00:00:00 2001 From: mikeller Date: Sun, 12 Mar 2017 19:08:23 +1300 Subject: [PATCH] Fixed 'get' / 'set' CLI commands. --- src/main/fc/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/fc/cli.c b/src/main/fc/cli.c index c2d75c575a..66751d7c8f 100755 --- a/src/main/fc/cli.c +++ b/src/main/fc/cli.c @@ -1413,7 +1413,7 @@ static void printValuePointer(const clivalue_t *var, const void *valuePointer, u } break; case MODE_LOOKUP: - cliPrintf(lookupTables[var->config.lookup.tableIndex].values[value]); + cliPrint(lookupTables[var->config.lookup.tableIndex].values[value]); break; } } @@ -1704,7 +1704,7 @@ static uint16_t getValueOffset(const clivalue_t *value) static void *getValuePointer(const clivalue_t *value) { const pgRegistry_t* rec = pgFind(value->pgn); - return CONST_CAST(void *, rec + getValueOffset(value)); + return CONST_CAST(void *, rec->address + getValueOffset(value)); } static void dumpPgValue(const clivalue_t *value, uint8_t dumpMask)