master/slave_config.c
changeset 1097 f974ced181f3
parent 1092 69393cf60399
child 1115 b7b965ab94cd
equal deleted inserted replaced
1096:a32a102a30db 1097:f974ced181f3
   510         return 0;
   510         return 0;
   511 
   511 
   512     for (i = 0; i < n_syncs; i++) {
   512     for (i = 0; i < n_syncs; i++) {
   513         sync_info = &syncs[i];
   513         sync_info = &syncs[i];
   514 
   514 
   515         if (sync_info->index == 0xff)
   515         if (sync_info->index == (uint8_t) EC_END)
   516             break;
   516             break;
   517 
   517 
   518         if (sync_info->index >= EC_MAX_SYNC_MANAGERS) {
   518         if (sync_info->index >= EC_MAX_SYNC_MANAGERS) {
   519             EC_ERR("Invalid sync manager index %u!\n", sync_info->index);
   519             EC_ERR("Invalid sync manager index %u!\n", sync_info->index);
   520             return -1;
   520             return -1;