# HG changeset patch # User Florian Pose # Date 1209125926 0 # Node ID ba6f222aa06e9d3ae27b07db8d4415c6e7bc954c # Parent d13004440b6d4269ec95895550ba141c3b396c4d Removed some debugging. diff -r d13004440b6d -r ba6f222aa06e TODO --- a/TODO Fri Apr 25 12:16:56 2008 +0000 +++ b/TODO Fri Apr 25 12:18:46 2008 +0000 @@ -35,7 +35,6 @@ * Rename the sdodict state to sdo_dictionary. * Check the position of the acknowledge state. * Remove the xmldev files. -* Remove some debugging (add_sync_manager, clearing station addresses). * Separate CoE debugging. * Make ecrt_master_slave_config() return no error when slave is not present or invalid. diff -r d13004440b6d -r ba6f222aa06e master/fsm_master.c --- a/master/fsm_master.c Fri Apr 25 12:16:56 2008 +0000 +++ b/master/fsm_master.c Fri Apr 25 12:18:46 2008 +0000 @@ -271,9 +271,7 @@ list_add_tail(&slave->list, &master->slaves); } - if (master->debug_level) - EC_DBG("Clearing station addresses...\n"); - + // broadcast clear all station addresses ec_datagram_bwr(datagram, 0x0010, 2); EC_WRITE_U16(datagram->data, 0x0000); fsm->retries = EC_FSM_RETRIES; diff -r d13004440b6d -r ba6f222aa06e master/slave.c --- a/master/slave.c Fri Apr 25 12:16:56 2008 +0000 +++ b/master/slave.c Fri Apr 25 12:18:46 2008 +0000 @@ -503,9 +503,6 @@ count = data_size / 8; - if (slave->master->debug_level) - EC_DBG("Found Sync manager category with %u sync managers.\n", count); - if (count) { total_count = count + slave->sii.sync_count; memsize = sizeof(ec_sync_t) * total_count; @@ -536,9 +533,6 @@ slave->sii.sync_count = total_count; } - if (slave->master->debug_level) - EC_DBG("Total sync managers: %u.\n", slave->sii.sync_count); - return 0; }