uavcan: fix driver init after stop/start (#25511)

This commit is contained in:
Alexander Lerach
2025-09-02 10:02:15 -08:00
committed by GitHub
parent ce207837cf
commit 9015001b42
2 changed files with 8 additions and 2 deletions
@@ -644,7 +644,7 @@ uavcan::int16_t CanIface::configureFilters(const uavcan::CanFilterConfig *filter
bool CanIface::waitCCCRBitStateChange(uint32_t mask, bool target_state)
{
#if UAVCAN_STM32_NUTTX
#if UAVCAN_STM32H7_NUTTX
const unsigned Timeout = 1000;
#else
const unsigned Timeout = 2000000;
@@ -657,7 +657,7 @@ bool CanIface::waitCCCRBitStateChange(uint32_t mask, bool target_state)
return true;
}
#if UAVCAN_STM32_NUTTX
#if UAVCAN_STM32H7_NUTTX
::usleep(1000);
#endif
}