From ad0de67df7e8dfeb328356ab2014379d2b51584f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Fri, 30 Oct 2020 15:21:41 +0100 Subject: [PATCH] dshot: fix build error Fixes src/drivers/dshot/dshot.cpp:1408:9: error: declaration of 'struct DShotOutput::custom_command(int, char**)::Command' shadows a previous local [-Werror=shadow] --- src/drivers/dshot/dshot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/dshot/dshot.cpp b/src/drivers/dshot/dshot.cpp index fc3766892c..1d760da467 100644 --- a/src/drivers/dshot/dshot.cpp +++ b/src/drivers/dshot/dshot.cpp @@ -1405,13 +1405,13 @@ int DShotOutput::custom_command(int argc, char *argv[]) } } - struct Command { + struct VerbCommand { const char *name; dshot_command_t command; int num_repetitions; }; - constexpr Command commands[] = { + constexpr VerbCommand commands[] = { {"reverse", DShot_cmd_spin_direction_reversed, 10}, {"normal", DShot_cmd_spin_direction_normal, 10}, {"save", DShot_cmd_save_settings, 10},