master/sync.c
changeset 1802 8876c3d9357d
parent 1801 31af610f1639
child 1921 d9cf40facbc4
--- 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) {