From db096557d44eb5980e4699444acc531fe6f9b134 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 7 Jun 2021 16:08:03 +0200 Subject: [PATCH] D[236]: remove "busy" messages while dumping, avoid WDT --- Firmware/Dcodes.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Firmware/Dcodes.cpp b/Firmware/Dcodes.cpp index 7585af0bf..9603dc62f 100644 --- a/Firmware/Dcodes.cpp +++ b/Firmware/Dcodes.cpp @@ -98,6 +98,10 @@ void print_mem(daddr_t address, daddr_t count, dcode_mem_t type, uint8_t countpe print_hex_byte(data); count_line--; count--; + + // sporadically call manage heaters to avoid wdt + if(!((uint16_t)count % 8192)) + manage_heater(); } putchar('\n'); } @@ -122,6 +126,7 @@ void write_mem(uint16_t address, uint16_t count, const uint8_t* data, const dcod void dcode_core(daddr_t addr_start, const daddr_t addr_end, const dcode_mem_t type, uint8_t dcode, const char* type_desc) { + KEEPALIVE_STATE(NOT_BUSY); DBG(_N("D%d - Read/Write %S\n"), dcode, type_desc); daddr_t count = -1; // RW the entire space by default if (code_seen('A'))