mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 18:13:46 +08:00
Support of virtual sync managers
This commit is contained in:
+4
-2
@@ -99,8 +99,10 @@ void ec_sync_page(
|
||||
uint8_t *data /**> Configuration memory. */
|
||||
)
|
||||
{
|
||||
// enable only if SII enable is set and size is > 0.
|
||||
uint16_t enable = sync->enable && data_size;
|
||||
// enable only if SII enable is set and size is > 0 and SM is not virtual
|
||||
uint16_t enable = (sync->enable & 0x01)
|
||||
&& data_size
|
||||
&& ((sync->enable & 0x04) == 0);
|
||||
uint8_t control = sync->control_register;
|
||||
|
||||
if (sync_config) {
|
||||
|
||||
Reference in New Issue
Block a user