# HG changeset patch # User Dominik Staubli # Date 1264494635 -3600 # Node ID 31af610f1639d2860e2d1289f062413fa261924a # Parent f228415225b777b86fd87cea974c5f9ddca5c036 Support of virtual sync managers diff -r f228415225b7 -r 31af610f1639 master/sync.c --- a/master/sync.c Thu Jan 21 11:10:22 2010 +0100 +++ b/master/sync.c Tue Jan 26 09:30:35 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) {