Skip to content

Commit

Permalink
Fix watch dog timeout
Browse files Browse the repository at this point in the history
Addressing issue  ZuluSCSI/ZuluSCSI-firmware#350

When implementing a dynamic watchdog setup, a fixed alarm number was
passed instead of the dynamic one. This fixes the issue for
the RP2040 targets. The Earl E Philhower PlatoformIO framework
doesn't use mbed so error reporting hasn't been fully implemented yet.
  • Loading branch information
morio authored and erichelgeson committed Feb 21, 2024
1 parent 9e4c0d9 commit ef5a668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BlueSCSI_platform_RP2040/BlueSCSI_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ static void watchdog_callback(unsigned alarm_num)
}
}

hardware_alarm_set_target(3, delayed_by_ms(get_absolute_time(), 1000));
hardware_alarm_set_target(alarm_num, delayed_by_ms(get_absolute_time(), 1000));
}

// This function can be used to periodically reset watchdog timer for crash handling.
Expand Down

0 comments on commit ef5a668

Please sign in to comment.