X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/4565be9a755c4de8ffdbc8b9a7b2d87c87f7a9e1..9461ecf31e8c701160059af2836337f79fc837b3:/avr/cmd_gpio.c diff --git a/avr/cmd_gpio.c b/avr/cmd_gpio.c index f448e36..6b7b3f7 100644 --- a/avr/cmd_gpio.c +++ b/avr/cmd_gpio.c @@ -1,3 +1,9 @@ +/* + * (C) Copyright 2014 Leo C. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + #include "common.h" #include #include @@ -29,9 +35,9 @@ static void pinnames_get(void) memset(pin_names, 0, sizeof(pin_names)); pin_names_width = 0; -/* TODO: enters endless loop on wron parameters */ +/* TODO: enters endless loop on wrong parameters */ - if ((lp = getenv(PSTR(ENV_PINALIAS))) != NULL) { + if ((lp = getenv_char(PSTR(ENV_PINALIAS))) != NULL) { pin_names[namestr] = strdup(lp); ptr = strtok_P(pin_names[namestr], delim1); while (ptr != NULL) {