This commit is contained in:
Martin Troxler 2010-02-02 08:35:28 +01:00
commit 7ac0b678be
1 changed files with 4 additions and 2 deletions

View File

@ -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) {