summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hal/phy/maximus/src/maximus_phy_access.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/hal/phy/maximus/src/maximus_phy_access.c b/hal/phy/maximus/src/maximus_phy_access.c
index 4f4511a145..636577e487 100644
--- a/hal/phy/maximus/src/maximus_phy_access.c
+++ b/hal/phy/maximus/src/maximus_phy_access.c
@@ -390,14 +390,17 @@ maximus_phy_access_prp_result_cb (void *data)
{
ctx->access.prp_result = true;
}
+ else
+ {
+ ctx->access.prp_result = false;
- /* If PRP is lost (i.e. the detected CAP is greater than the programmed one), PHY stops Tx. */
+ /* If PRP is lost (i.e. the detected CAP is greater than the programmed one), PHY stops Tx. */
- if (!ctx->access.prp_result
- && ctx->control.stop_tx_on_prp_lost)
- {
- maximus_phy_next_tx_frame_cancel(ctx);
- maximus_phy_current_tx_frame_cancel(ctx);
+ if (ctx->control.stop_tx_on_prp_lost)
+ {
+ maximus_phy_next_tx_frame_cancel(ctx);
+ maximus_phy_current_tx_frame_cancel(ctx);
+ }
}
ctx->access.backoff_start_netclock_id = 0;