Commit 302e8af8 authored by Adam Wujek's avatar Adam Wujek

(non tech change) improve code formatting

Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 2b8d2e46
......@@ -365,7 +365,7 @@ static int __wrh_servo_update(struct pp_instance *ppi)
}
gs->servo_locked=gs->state==WRH_TRACK_PHASE;
gs->servo_locked = (gs->state==WRH_TRACK_PHASE);
/* Increase number of servo updates with state different than
* WRH_TRACK_PHASE. (Used by SNMP) */
......
......@@ -23,7 +23,7 @@ int wr_calibration(struct pp_instance *ppi, void *buf, int len, int new_state)
TimeInterval ti;
/* Calculate deltaTx and update servo*/
delta=&wrp->deltaTx;
delta = &wrp->deltaTx;
ti = ppi->timestampCorrectionPortDS.egressLatency*1000;
delta->scaledPicoseconds.msb = ti >> 32;
delta->scaledPicoseconds.lsb = ti & 0xFFFFFFFF;
......@@ -33,7 +33,7 @@ int wr_calibration(struct pp_instance *ppi, void *buf, int len, int new_state)
fixedDelta_to_pp_time(*delta, &se->delta_txs);/* Update servo specific data */
/* Calculate deltaRx and update servo*/
delta=&wrp->deltaRx;
delta = &wrp->deltaRx;
ti= ((ppi->timestampCorrectionPortDS.ingressLatency +
ppi->timestampCorrectionPortDS.semistaticLatency) * 1000);
delta->scaledPicoseconds.msb = ti >> 32;
......
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