@@ -432,7 +432,7 @@ static int ec_slave_config_dc_systime_and_delay(ec_slave_t *slave)
432432
433433 datagram = & slave -> master -> main_datagram ;
434434
435- if (slave -> base_dc_supported && slave -> has_dc_system_time ) {
435+ if (slave -> base_dc_supported ) {
436436 ec_datagram_fprd (datagram , slave -> station_address , ESCREG_OF (ESCREG -> SYS_TIME ), 24 );
437437 datagram -> netdev_idx = slave -> netdev_idx ;
438438 ret = ec_master_queue_ext_datagram (slave -> master , datagram , true, true);
@@ -737,9 +737,7 @@ static int ec_slave_config(ec_slave_t *slave)
737737 }
738738
739739 if (slave -> config && slave -> config -> dc_assign_activate ) {
740- if (!slave -> base_dc_supported ) {
741- EC_SLAVE_LOG_WRN ("Slave %u does not support DC, but DC is activated in master config\n" , slave -> index );
742- }
740+ EC_ASSERT_MSG (slave -> base_dc_supported , "Slave %u does not support DC" , slave -> index );
743741
744742 ec_slave_config_dc_systime_and_delay (slave );
745743
@@ -891,7 +889,7 @@ static void ec_master_find_dc_ref_clock(ec_master_t *master)
891889 for (slave = master -> slaves ;
892890 slave < master -> slaves + master -> slave_count ;
893891 slave ++ ) {
894- if (slave -> base_dc_supported && slave -> has_dc_system_time ) {
892+ if (slave -> base_dc_supported ) {
895893 ref = slave ;
896894 break ;
897895 }
@@ -1173,12 +1171,12 @@ void ec_slaves_scanning(ec_master_t *master)
11731171
11741172 slave -> base_fmmu_count = EC_READ_U8 (datagram -> data + 4 );
11751173 EC_ASSERT_MSG (slave -> base_fmmu_count <= EC_MAX_FMMUS ,
1176- "Slave %u FMMU count %u is overflow\n " ,
1174+ "Slave %u FMMU count %u is overflow" ,
11771175 slave -> index , slave -> base_fmmu_count );
11781176
11791177 slave -> base_sync_count = EC_READ_U8 (datagram -> data + 5 );
11801178 EC_ASSERT_MSG (slave -> base_sync_count <= EC_MAX_SYNC_MANAGERS ,
1181- "Slave %u sync managers count %u is overflow\n " ,
1179+ "Slave %u sync managers count %u is overflow" ,
11821180 slave -> index , slave -> base_fmmu_count );
11831181
11841182 uint8_t data = EC_READ_U8 (datagram -> data + 7 );
@@ -1203,14 +1201,6 @@ void ec_slaves_scanning(ec_master_t *master)
12031201 goto mutex_unlock ;
12041202 }
12051203
1206- if (datagram -> working_counter == 1 ) {
1207- slave -> has_dc_system_time = 1 ;
1208- EC_SLAVE_LOG_DBG ("Slave has the System Time register\n" );
1209- } else {
1210- slave -> has_dc_system_time = 0 ;
1211- EC_SLAVE_LOG_DBG ("Slave has no System Time register; delay measurement only\n" );
1212- }
1213-
12141204 // Read DC port receive times
12151205 ec_datagram_fprd (datagram , slave -> station_address , ESCREG_OF (ESCREG -> RCV_TIME [0 ]), 16 );
12161206 ec_datagram_zero (datagram );
0 commit comments