Commit 195d8733 authored by Alessandro Rubini's avatar Alessandro Rubini

white-rabbit: in non-wr mode, pps is always on

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 6c5ca924
...@@ -128,8 +128,9 @@ static int wr_handle_resp(struct pp_instance *ppi) ...@@ -128,8 +128,9 @@ static int wr_handle_resp(struct pp_instance *ppi)
return 0; return 0;
} }
pp_servo_got_resp(ppi); pp_servo_got_resp(ppi);
/* turn on pps output even if not WR, if < 1ms offset */ /* pps always on; until we have a configurable threshold */
pps_out = (ofm->seconds || abs(ofm->nanoseconds) > 1000*1000); if (ofm /* ->seconds || ... */)
pps_out = 1;
/* Only act on changes, so hackers can force it on manually */ /* Only act on changes, so hackers can force it on manually */
if (pps_out != WR_DSPOR(ppi)->ppsOutputOn) if (pps_out != WR_DSPOR(ppi)->ppsOutputOn)
......
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