master/fsm_sii.c
changeset 1951 a1a6d7719f97
parent 1921 d9cf40facbc4
child 1957 b481ccf21272
equal deleted inserted replaced
1950:237b71828a9d 1951:a1a6d7719f97
   275     EC_SLAVE_DBG(fsm->slave, 0, "checking SII read state:\n");
   275     EC_SLAVE_DBG(fsm->slave, 0, "checking SII read state:\n");
   276     ec_print_data(datagram->data, 10);
   276     ec_print_data(datagram->data, 10);
   277 #endif
   277 #endif
   278 
   278 
   279     if (EC_READ_U8(datagram->data + 1) & 0x20) {
   279     if (EC_READ_U8(datagram->data + 1) & 0x20) {
   280         EC_SLAVE_ERR(fsm->slave, "SII: Error on last SII command!\n");
   280         EC_SLAVE_ERR(fsm->slave, "Error on last command while"
       
   281                 " reading from SII word 0x%04x.\n", fsm->word_offset);
   281         fsm->state = ec_fsm_sii_state_error;
   282         fsm->state = ec_fsm_sii_state_error;
   282         return;
   283         return;
   283     }
   284     }
   284 
   285 
   285     // check "busy bit"
   286     // check "busy bit"