Commit bb488a9f authored by Jean-Claude BAU's avatar Jean-Claude BAU

HAL: Fix issue in PLL state machine

parent b213646d
......@@ -169,8 +169,8 @@ static int port_pll_fsm_build_events(fsm_t *fsm) {
}
if ( ps->hw_index==hwIndex && tm == HAL_TIMING_MODE_BC) {
int locked=hal_port_check_lock(ps);
if ( locked >=0 ) {
portEventMask|= locked ?
if ( locked != PORT_LOCK_STATE_ERROR ) {
portEventMask|= locked==PORT_LOCK_STATE_LOCKED ?
HAL_PORT_PLL_EVENT_LOCKED : HAL_PORT_PLL_EVENT_UNLOCKED;
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment