Commit a1d8e4b3 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

PTPWRd/protocol.c: reset servo on initialization of a slave port

parent 0c9dc6de
...@@ -445,6 +445,10 @@ Boolean doInit(RunTimeOpts *rtOpts, PtpPortDS *ptpPortDS) ...@@ -445,6 +445,10 @@ Boolean doInit(RunTimeOpts *rtOpts, PtpPortDS *ptpPortDS)
else else
PTPD_TRACE(TRACE_PROTO, ptpPortDS,"wrConfig .............. FORCED configuration\n") ; PTPD_TRACE(TRACE_PROTO, ptpPortDS,"wrConfig .............. FORCED configuration\n") ;
/* Slave-only port reinitialized: reset the servo. FIXME: won't work with multiple slave ports. */
if(ptpPortDS->wrConfig == WR_S_ONLY)
wr_servo_reset();
/* Create the timers (standard PTP only, the WR ones are created in another function: initWrData) */ /* Create the timers (standard PTP only, the WR ones are created in another function: initWrData) */
timerInit(&ptpPortDS->timers.sync, "Sync"); timerInit(&ptpPortDS->timers.sync, "Sync");
......
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