Merge branch 'rescan-statements' into 'stable-1.6'

Avoid rescan on non-responding slave

See merge request etherlab.org/ethercat!167
This commit is contained in:
Florian Pose
2025-04-03 16:25:43 +02:00

View File

@@ -771,10 +771,8 @@ void ec_fsm_master_state_read_state(
if (datagram->working_counter != 1) {
if (!slave->error_flag) {
slave->error_flag = 1;
EC_SLAVE_DBG(slave, 1, "Slave did not respond to state query. "
"Re-scanning on next possibility...\n");
EC_SLAVE_DBG(slave, 1, "Slave did not respond to state query.\n");
}
fsm->rescan_required = 1;
ec_fsm_master_restart(fsm);
return;
}