diff options
Diffstat (limited to 'avr/cmd_loadihex.c')
-rw-r--r-- | avr/cmd_loadihex.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/avr/cmd_loadihex.c b/avr/cmd_loadihex.c index f8044d5..d55a63a 100644 --- a/avr/cmd_loadihex.c +++ b/avr/cmd_loadihex.c @@ -12,7 +12,7 @@ #include "debug.h" -uint32_t detect_ramsize(void) +static uint32_t detect_ramsize(void) { uint32_t addr; uint8_t save_addr, save_0; @@ -185,11 +185,7 @@ command_ret_t do_loadihex(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int if (rec.len > tmplen) rec.len = tmplen; - if (!(z80_bus_cmd(Request) & ZST_ACQUIRED)) { - cmd_error(CMD_RET_FAILURE, EBUSTO, NULL); - //my_puts_P(PSTR("Bus timeout\n")); - //return CMD_RET_FAILURE; - } + z80_bus_request_or_exit(); z80_write_block(rec.data, /* src */ addr, /* dest */ rec.len); /* len */ |