summaryrefslogtreecommitdiff
path: root/avr/cmd_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/cmd_gpio.c')
-rw-r--r--avr/cmd_gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avr/cmd_gpio.c b/avr/cmd_gpio.c
index 549654f..16c2202 100644
--- a/avr/cmd_gpio.c
+++ b/avr/cmd_gpio.c
@@ -5,8 +5,6 @@
*/
#include "cmd_gpio.h"
-#include <ctype.h>
-
#include "print-utils.h"
#include "getopt-min.h"
#include "env.h"
@@ -247,6 +245,7 @@ command_ret_t do_gpio(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int arg
switch (toupper(argv[optind][0])) {
case 'H':
level = 1;
+ /* FALL TROUGH */
case 'L':
mode = OUTPUT;
break;
@@ -263,6 +262,7 @@ command_ret_t do_gpio(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int arg
switch (*endp) {
case 'M':
value *= 1000;
+ /* FALL TROUGH */
case 'K':
value *= 1000;
endp++;