summaryrefslogtreecommitdiff
path: root/avr/main.c
diff options
context:
space:
mode:
authorLeo C2014-10-15 21:20:41 +0200
committerLeo C2014-10-15 21:20:41 +0200
commit70c994914510f9db3ff71373cb96f50ee1669446 (patch)
treeb9fce17909ca3a66524a5b7f6c7fe7b118cb409c /avr/main.c
parentcd5ee5442821f283f6661befb24b885d944e4c5e (diff)
downloadz180-stamp-70c994914510f9db3ff71373cb96f50ee1669446.zip
Add pin_alias
Diffstat (limited to 'avr/main.c')
-rw-r--r--avr/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/avr/main.c b/avr/main.c
index e7ebd5d..ba8a672 100644
--- a/avr/main.c
+++ b/avr/main.c
@@ -168,13 +168,13 @@ const char *bootdelay_process(void)
char *s;
int bootdelay;
- bootdelay = (int) getenv_ulong(PSTR("bootdelay"), 10, CONFIG_BOOTDELAY);
+ bootdelay = (int) getenv_ulong(PSTR(ENV_BOOTDELAY), 10, CONFIG_BOOTDELAY);
debug("### main_loop entered: bootdelay=%d\n\n", bootdelay);
_delay_ms(20);
- s = getenv(PSTR("bootcmd"));
+ s = getenv(PSTR(ENV_BOOTCMD));
stored_bootdelay = bootdelay;
return s;
}
@@ -212,7 +212,7 @@ int main(void)
if (reset_reason_is_power_on())
_delay_ms(CONFIG_PWRON_DELAY);
- serial_setup(getenv_ulong(PSTR("baudrate"), 10, CONFIG_BAUDRATE));
+ serial_setup(getenv_ulong(PSTR(ENV_BAUDRATE), 10, CONFIG_BAUDRATE));
sei();
#if DEBUG