summaryrefslogtreecommitdiff
path: root/cesar/hal
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hal')
-rw-r--r--cesar/hal/phy/src/bridgedma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cesar/hal/phy/src/bridgedma.c b/cesar/hal/phy/src/bridgedma.c
index b01ab9e958..31d9c20f87 100644
--- a/cesar/hal/phy/src/bridgedma.c
+++ b/cesar/hal/phy/src/bridgedma.c
@@ -274,6 +274,7 @@ phy_bridgedma_stopped (phy_bridgedma_t *ctx)
u32 expired = phy_date () + MAC_MS_TO_TCK (PHY_BRG_POLLING_WAIT_MS);
while (_phy_bridgedma_status (ctx) && less_mod2p32 (phy_date (), expired))
;
- dbg_assert_print (less_mod2p32 (phy_date (), expired),
+ dbg_assert_print (_phy_bridgedma_status (ctx)
+ || less_mod2p32 (phy_date (), expired),
"Bridge DMA freezed");
}