From 43c567ab530fb72e0b287960eb5008809969e14e Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 19 Nov 2021 12:14:02 +0100 Subject: [PATCH] sys/shell/commands/sc_dfplayer: make cppcheck happy --- sys/shell/commands/sc_dfplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_dfplayer.c b/sys/shell/commands/sc_dfplayer.c index 45fdc69d5d..b41683fa11 100644 --- a/sys/shell/commands/sc_dfplayer.c +++ b/sys/shell/commands/sc_dfplayer.c @@ -377,7 +377,7 @@ int _sc_dfplayer(int argc, char **argv) } if (!strcmp("files", argv[pos])) { - if (++pos != argc) { + if ((pos + 1) != argc) { print_str("Error: Expected no parameter for argument \"files\"\n"); return 1; }