diff options
author | Leo C | 2018-10-01 15:18:33 +0200 |
---|---|---|
committer | Leo C | 2018-10-01 15:18:33 +0200 |
commit | 52ef24e4020adcb773adcb0d82b1c2c385610461 (patch) | |
tree | 20ad11e1c5fd2222925af69cf8b43e49fd065123 /avr/cmd_gpio.c | |
parent | dbc1de70e1824cf1a649d892db5746b86b34b4e7 (diff) | |
download | z180-stamp-52ef24e4020adcb773adcb0d82b1c2c385610461.zip |
reset optind before executing command
Diffstat (limited to 'avr/cmd_gpio.c')
-rw-r--r-- | avr/cmd_gpio.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/avr/cmd_gpio.c b/avr/cmd_gpio.c index 65a71be..549654f 100644 --- a/avr/cmd_gpio.c +++ b/avr/cmd_gpio.c @@ -173,9 +173,6 @@ command_ret_t do_gpio(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int arg uint_fast8_t pinarg[GPIO_MAX]; uint_fast8_t pinargc; - /* reset getopt() */ - optind = 0; - int opt; while ((opt = getopt(argc, argv, PSTR("s"))) != -1) { switch (opt) { |