Skip to content

Commit

Permalink
Add delay after DW3000 driver probe failure to keep chip from becomin…
Browse files Browse the repository at this point in the history
…g permanently inaccessible
  • Loading branch information
hedgecrw committed Dec 12, 2024
1 parent 809a16b commit 2ff2cdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion software/firmware/src/peripherals/src/ranging.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ void ranging_radio_reset(void)
// Initialize the DW3000 driver and transceiver
if (dwt_probe((struct dwt_probe_s*)&driver_interface) != DWT_SUCCESS)
{
print("ERROR: Could not successfully reset DW3000 peripheral...resetting entire device\n");
print("ERROR: Could not successfully probe DW3000 peripheral...resetting entire device\n");
am_util_delay_ms(1000);
system_reset(false);
}
configASSERT0(dwt_initialise(DWT_DW_IDLE));
Expand Down

0 comments on commit 2ff2cdd

Please sign in to comment.