]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/cmd_gpio.c
New command(s): attach (and detach) - not fully working.
[z180-stamp.git] / avr / cmd_gpio.c
index e0d9b06e9f3fb36f6266c8e6558f21b739d63afc..6b7b3f7b069c9a6b5ef8d4391d84992d6f8ed728 100644 (file)
@@ -35,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) {