X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/e4344855b4d5d3edb4a07640a808ba2e0f06914f..7af9364ebd7ad6c143f31e9abe745c6d75f8322b:/avr/main.c diff --git a/avr/main.c b/avr/main.c index 7796a36..86dcc50 100644 --- a/avr/main.c +++ b/avr/main.c @@ -31,7 +31,7 @@ uint8_t mcusr __attribute__ ((section (".noinit"))); __attribute__ ((naked)) __attribute__ ((section (".init3"))) void preset_ram (void) { - for (uint8_t *p = RAMSTART; p <= (uint8_t *) RAMEND; p++) + for (uint8_t *p = (uint8_t *) RAMSTART; p <= (uint8_t *) RAMEND; p++) *p = 0xdd; } @@ -223,7 +223,7 @@ const char *bootdelay_process(void) debug("### main_loop entered: bootdelay=%d\n\n", bootdelay); _delay_ms(20); - s = getenv_char(PSTR(ENV_BOOTCMD)); + s = getenv_str(PSTR(ENV_BOOTCMD)); stored_bootdelay = bootdelay; return s; }