Commit ea540d86 authored by Daan Vreeken's avatar Daan Vreeken
Browse files

Committer: Daan Vreeken <pa4dan@RacebeestV3.VEHosting.LAN>

	modified:   controller/ec/esc_sm.c

Explicitly disable syncmanagers for empty PDOs.
parent 6fc364c2
......@@ -59,6 +59,12 @@ int esc_sm_set(struct esc_device *dev, int nr)
val8 = ESC_SYNCMANAGER_ACTIVATE_ENABLE;
ec_datagram_write(addr, &val8, 1);
log_send(LOG_T_DEBUG, "%s: sm%d: activated", dev->name, nr);
} else {
addr->addr.position.off = ESC_ADDR_MAP_SYNCMANAGER_NR(nr) |
ESC_ADDR_MAP_SYNCMANAGER_ACTIVATE;
val8 = 0;
ec_datagram_write(addr, &val8, 1);
log_send(LOG_T_DEBUG, "%s: sm%d: deactivated", dev->name, nr);
}
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