Skip to content
Snippets Groups Projects
Commit b6bd16a5 authored by Dominik Staubli's avatar Dominik Staubli
Browse files

Support of virtual sync managers

parent dae74cd2
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment