From 0091e7df922f982dde9ff16f761b78938e6f8c8c Mon Sep 17 00:00:00 2001 From: Dominik Staubli Date: Tue, 26 Jan 2010 09:30:35 +0100 Subject: [PATCH] Support of virtual sync managers --- master/sync.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/master/sync.c b/master/sync.c index 0a3f2705..d9503942 100644 --- a/master/sync.c +++ b/master/sync.c @@ -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) {