summaryrefslogtreecommitdiff
path: root/avr/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/main.c')
-rw-r--r--avr/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/avr/main.c b/avr/main.c
index dc7a6ef..a09f05c 100644
--- a/avr/main.c
+++ b/avr/main.c
@@ -164,13 +164,13 @@ const char *bootdelay_process(void)
char *s;
int bootdelay;
- bootdelay = (int) getenv_ulong("bootdelay", 10, CONFIG_BOOTDELAY);
+ bootdelay = (int) getenv_ulong(PSTR("bootdelay"), 10, CONFIG_BOOTDELAY);
debug("### main_loop entered: bootdelay=%d\n\n", bootdelay);
_delay_ms(20);
- s = getenv("bootcmd");
+ s = getenv(PSTR("bootcmd"));
stored_bootdelay = bootdelay;
return s;
}
@@ -208,7 +208,7 @@ int main(void)
if (reset_reason_is_power_on())
_delay_ms(CONFIG_PWRON_DELAY);
- serial_setup(getenv_ulong("baudrate", 10, CONFIG_BAUDRATE));
+ serial_setup(getenv_ulong(PSTR("baudrate"), 10, CONFIG_BAUDRATE));
sei();
#if DEBUG
@@ -217,7 +217,7 @@ int main(void)
#endif
#if DEBUG
- unsigned long i_speed = getenv_ulong("i2c_clock", 10, CONFIG_SYS_I2C_CLOCK);
+ unsigned long i_speed = getenv_ulong(PSTR("i2c_clock"), 10, CONFIG_SYS_I2C_CLOCK);
debug("### Setting I2C clock Frequency to %lu Hz.\n", i_speed);
i2c_init(i_speed);
#else