summaryrefslogtreecommitdiff
path: root/avr/main.c
diff options
context:
space:
mode:
authorLeo C2016-03-21 23:33:05 +0100
committerLeo C2016-03-21 23:33:05 +0100
commit1b77fa4e36e50258936a4b61fdb11a988d473b1a (patch)
treec9437a732dfcb31cc9272c079769d713fe946516 /avr/main.c
parentf3e47f679c5154908d3f869c1e9a4b5fcc29d4a5 (diff)
downloadz180-stamp-1b77fa4e36e50258936a4b61fdb11a988d473b1a.zip
Rename getenv() to getenv_char()
getenv() is declared in some avr-libc versions.
Diffstat (limited to 'avr/main.c')
-rw-r--r--avr/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avr/main.c b/avr/main.c
index b8ce26d..113b4f2 100644
--- a/avr/main.c
+++ b/avr/main.c
@@ -224,7 +224,7 @@ const char *bootdelay_process(void)
debug("### main_loop entered: bootdelay=%d\n\n", bootdelay);
_delay_ms(20);
- s = getenv(PSTR(ENV_BOOTCMD));
+ s = getenv_char(PSTR(ENV_BOOTCMD));
stored_bootdelay = bootdelay;
return s;
}