Commit 81a40a22 authored by Adam Wujek's avatar Adam Wujek Committed by Adam Wujek

[BUG: #36] proto-ext-whiterabbit: Fix the stuck in UNCALIBRAT/IDLE

Fix the stuck in UNCALIBRAT/IDLE after e.g. accuracy changed
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 023f410a
......@@ -335,7 +335,16 @@ static int wr_extension_state_changed( struct pp_instance * ppi) {
static int wr_new_slave (struct pp_instance *ppi, void *buf, int len) {
if ( ppi->extState==PP_EXSTATE_ACTIVE ) {
struct wr_dsport *wrp = WR_DSPOR(ppi);
wr_servo_init(ppi);
/* To avoid comparison of sequenceId with parentAnnSequenceId
* and portIndentity with parentAnnPortIdentity set
* doRestart as TRUE*/
if (ppi->ext_data)
WRH_SRV(ppi)->doRestart = TRUE;
}
return 0;
}
......
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