master/voe_handler.c
branchstable-1.5
changeset 2419 fdb85a806585
parent 2374 e898451c054a
child 2522 ec403cf308eb
equal deleted inserted replaced
2417:63bef67e812b 2419:fdb85a806585
   188 
   188 
   189 ec_request_state_t ecrt_voe_handler_execute(ec_voe_handler_t *voe)
   189 ec_request_state_t ecrt_voe_handler_execute(ec_voe_handler_t *voe)
   190 {
   190 {
   191     if (voe->config->slave) { // FIXME locking?
   191     if (voe->config->slave) { // FIXME locking?
   192         voe->state(voe);
   192         voe->state(voe);
   193         if (voe->request_state == EC_INT_REQUEST_BUSY)
   193         if (voe->request_state == EC_INT_REQUEST_BUSY) {
   194             ec_master_queue_datagram(voe->config->master, &voe->datagram);
   194             ec_master_queue_datagram(voe->config->master, &voe->datagram);
       
   195         }
   195     } else {
   196     } else {
   196         voe->state = ec_voe_handler_state_error;
   197         voe->state = ec_voe_handler_state_error;
   197         voe->request_state = EC_INT_REQUEST_FAILURE;
   198         voe->request_state = EC_INT_REQUEST_FAILURE;
   198     }
   199     }
   199 
   200