Merge
authorMartin Troxler <martin.troxler@komaxgroup.com>
Tue, 02 Feb 2010 08:35:28 +0100
changeset 1802 8876c3d9357d
parent 1800 5bfbb7be5400 (current diff)
parent 1801 31af610f1639 (diff)
child 1803 5b04770444df
Merge
--- a/master/sync.c	Sun Jan 31 14:50:37 2010 +0100
+++ b/master/sync.c	Tue Feb 02 08:35:28 2010 +0100
@@ -99,8 +99,10 @@
         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) {