master/fsm_slave_scan.c
changeset 1958 7dceb43bd855
parent 1951 a1a6d7719f97
child 2044 1ae0491b2f6b
child 2498 9cdd7669dc0b
equal deleted inserted replaced
1957:b481ccf21272 1958:7dceb43bd855
   503 
   503 
   504     if (!ec_fsm_sii_success(&fsm->fsm_sii)) {
   504     if (!ec_fsm_sii_success(&fsm->fsm_sii)) {
   505         fsm->slave->error_flag = 1;
   505         fsm->slave->error_flag = 1;
   506         fsm->state = ec_fsm_slave_scan_state_error;
   506         fsm->state = ec_fsm_slave_scan_state_error;
   507         EC_SLAVE_ERR(slave, "Failed to determine SII content size:"
   507         EC_SLAVE_ERR(slave, "Failed to determine SII content size:"
   508                 " Reading word offset 0x%04x failed.\n", fsm->sii_offset);
   508                 " Reading word offset 0x%04x failed. Assuming %u words.\n",
   509         return;
   509                 fsm->sii_offset, EC_FIRST_SII_CATEGORY_OFFSET);
       
   510         slave->sii_nwords = EC_FIRST_SII_CATEGORY_OFFSET;
       
   511         goto alloc_sii;
   510     }
   512     }
   511 
   513 
   512     cat_type = EC_READ_U16(fsm->fsm_sii.value);
   514     cat_type = EC_READ_U16(fsm->fsm_sii.value);
   513     cat_size = EC_READ_U16(fsm->fsm_sii.value + 2);
   515     cat_size = EC_READ_U16(fsm->fsm_sii.value + 2);
   514 
   516