]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/debug.c
Handle bus errors in md command
[z180-stamp.git] / avr / debug.c
index f3632c288018c14ca31476ae4263f5393f5e8d75..e29a0858b91dd41004fe9f7aabd8aae123c5773e 100644 (file)
@@ -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;