Fixed usage of internal request states.
--- a/master/voe_handler.c Tue Jan 27 14:14:37 2009 +0000
+++ b/master/voe_handler.c Fri Jan 30 10:50:21 2009 +0000
@@ -159,7 +159,7 @@
{
voe->dir = EC_DIR_INPUT;
voe->state = ec_voe_handler_state_read_start;
- voe->request_state = EC_INT_REQUEST_QUEUED;
+ voe->request_state = EC_INT_REQUEST_BUSY;
}
/*****************************************************************************/
@@ -168,7 +168,7 @@
{
voe->dir = EC_DIR_INPUT;
voe->state = ec_voe_handler_state_read_nosync_start;
- voe->request_state = EC_INT_REQUEST_QUEUED;
+ voe->request_state = EC_INT_REQUEST_BUSY;
}
/*****************************************************************************/
@@ -178,16 +178,16 @@
voe->dir = EC_DIR_OUTPUT;
voe->data_size = size;
voe->state = ec_voe_handler_state_write_start;
- voe->request_state = EC_INT_REQUEST_QUEUED;
+ voe->request_state = EC_INT_REQUEST_BUSY;
}
/*****************************************************************************/
ec_request_state_t ecrt_voe_handler_execute(ec_voe_handler_t *voe)
{
- if (voe->config->slave) {
+ if (voe->config->slave) { // FIXME locking?
voe->state(voe);
- if (voe->request_state == EC_REQUEST_BUSY)
+ if (voe->request_state == EC_INT_REQUEST_BUSY)
ec_master_queue_datagram(voe->config->master, &voe->datagram);
} else {
voe->state = ec_voe_handler_state_error;