diff --git a/TODO b/TODO index aa7b0f3b..8e60ba1a 100644 --- a/TODO +++ b/TODO @@ -32,7 +32,6 @@ Version 1.4.0: * Implement ecrt_slave_config_state(). * Add something like lsec -n to show numeric vendor IDs. * Remove the end state of the master state machine. -* Rename the sdodict state to sdo_dictionary. * Check the position of the acknowledge state. * Remove the xmldev files. * Separate CoE debugging. diff --git a/documentation/graphs/fsm_master.dot b/documentation/graphs/fsm_master.dot index f1465893..10331579 100644 --- a/documentation/graphs/fsm_master.dot +++ b/documentation/graphs/fsm_master.dot @@ -27,7 +27,7 @@ digraph master { action_process_states -> action_configure action_process_states -> action_process_sdo - action_process_states -> sdodict + action_process_states -> sdo_dictionary action_process_states -> action_process_sii action_process_states -> end @@ -54,8 +54,8 @@ digraph master { write_sii -> action_process_sii write_sii -> end - //sdodict -> error - sdodict -> end + //sdo_dictionary -> error + sdo_dictionary -> end //sdo_request -> error sdo_request -> action_process_sdo diff --git a/master/fsm_master.c b/master/fsm_master.c index 4fa8db9b..d708e5f7 100644 --- a/master/fsm_master.c +++ b/master/fsm_master.c @@ -58,7 +58,7 @@ void ec_fsm_master_state_configure_slave(ec_fsm_master_t *); void ec_fsm_master_state_clear_addresses(ec_fsm_master_t *); void ec_fsm_master_state_scan_slaves(ec_fsm_master_t *); void ec_fsm_master_state_write_sii(ec_fsm_master_t *); -void ec_fsm_master_state_sdodict(ec_fsm_master_t *); +void ec_fsm_master_state_sdo_dictionary(ec_fsm_master_t *); void ec_fsm_master_state_sdo_request(ec_fsm_master_t *); void ec_fsm_master_state_end(ec_fsm_master_t *); void ec_fsm_master_state_error(ec_fsm_master_t *); @@ -533,7 +533,7 @@ void ec_fsm_master_action_process_states(ec_fsm_master_t *fsm || slave->error_flag) continue; if (master->debug_level) { - EC_DBG("Fetching Sdo dictionary from slave %i.\n", + EC_DBG("Fetching Sdo dictionary from slave %u.\n", slave->ring_position); } @@ -542,7 +542,7 @@ void ec_fsm_master_action_process_states(ec_fsm_master_t *fsm // start fetching Sdo dictionary fsm->idle = 0; fsm->slave = slave; - fsm->state = ec_fsm_master_state_sdodict; + fsm->state = ec_fsm_master_state_sdo_dictionary; ec_fsm_coe_dictionary(&fsm->fsm_coe, slave); ec_fsm_coe_exec(&fsm->fsm_coe); // execute immediately return; @@ -835,7 +835,9 @@ void ec_fsm_master_state_write_sii( Master state: SdoDICT. */ -void ec_fsm_master_state_sdodict(ec_fsm_master_t *fsm /**< master state machine */) +void ec_fsm_master_state_sdo_dictionary( + ec_fsm_master_t *fsm /**< master state machine */ + ) { ec_slave_t *slave = fsm->slave; ec_master_t *master = fsm->master;