*/
#include "cmd_gpio.h"
-#include <ctype.h>
-
#include "print-utils.h"
#include "getopt-min.h"
#include "env.h"
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) {
switch (toupper(argv[optind][0])) {
case 'H':
level = 1;
+ /* FALL TROUGH */
case 'L':
mode = OUTPUT;
break;
switch (*endp) {
case 'M':
value *= 1000;
+ /* FALL TROUGH */
case 'K':
value *= 1000;
endp++;