Commit 04b795b1 authored by Jean-Claude BAU's avatar Jean-Claude BAU

Update phase_valid & phase_value in UP state

parent a3c2619c
......@@ -222,6 +222,14 @@ static int _hal_port_state_link_up(void *vpfg, int eventMsk, int isNewState) {
hal_port_pll_init_fsm(ps);
}
if (isRtsStateValid() ) {
struct channel *ch=&getRtsState().channels[ps->hw_index];
ps->phase_val = ch->phase_loopback;
ps->phase_val_valid =ch->flags & CHAN_PMEAS_READY ? 1 : 0;
if (ps->hw_index==0 ) //JCB
printf("Phase=%d valid=%d\n",ps->phase_val,ps->phase_val_valid);
}
// Run PLL state machine
hal_port_pll_state_fsm(ps);
......
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