X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/ad9bc17c8ecab1f0bbd26f2270d4d396f4bc5e52..b51d2360e5a32408daae39b1c311868d0d34374c:/avr/debug.c diff --git a/avr/debug.c b/avr/debug.c index f3632c2..384a5ad 100644 --- a/avr/debug.c +++ b/avr/debug.c @@ -1,9 +1,10 @@ /* * (C) Copyright 2014 Leo C. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0 */ +#include "debug.h" #include "common.h" #include #include @@ -13,7 +14,6 @@ #include "command.h" #include "cli_readline.h" #include "print-utils.h" -#include "debug.h" /* * Debugging @@ -40,7 +40,7 @@ void dump_heap(void) */ command_ret_t do_dump_mem(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { - void (*readwhat)(uint8_t *buf, uint32_t addr, uint8_t count); + int (*readwhat)(uint8_t *buf, uint32_t addr, uint8_t count); (void) cmdtp; (void) flag; @@ -170,7 +170,7 @@ mod_mem_avr(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const arg data = *addr; printf_P(PSTR("%04x: %02x"), addr, data); - nbytes = cli_readline(PSTR(" ? ")); + nbytes = cli_readline(PSTR(" ? "), 0); if (nbytes == 0 || (nbytes == 1 && console_buffer[0] == '-')) { /* pressed as only input, don't modify current * location and move to next. "-" pressed will go back.