Hostmot2: Fix #513 - Cause an error message to show on watchdog timeout.

Signed-off-by: andy pugh <andy@bodgesoc.org>
This commit is contained in:
andy pugh 2018-10-18 22:56:02 +01:00
parent 2e8f4d3c82
commit 0cab36566e

View file

@ -47,7 +47,7 @@ void hm2_watchdog_process_tram_read(hostmot2_t *hm2) {
// last time we were here, everything was fine // last time we were here, everything was fine
// see if the watchdog has bit since then // see if the watchdog has bit since then
if (hm2->watchdog.status_reg[0] & 0x1) { if (hm2->watchdog.status_reg[0] & 0x1) {
HM2_PRINT("Watchdog has bit! (set the .has-bit pin to False to resume)\n"); HM2_ERR("Watchdog has bit! (set the .has-bit pin to False to resume)\n");
*hm2->watchdog.instance[0].hal.pin.has_bit = 1; *hm2->watchdog.instance[0].hal.pin.has_bit = 1;
hm2->llio->needs_reset = 1; hm2->llio->needs_reset = 1;
} }