diff --git a/components/free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp b/components/free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp index e98110f..bc00842 100644 --- a/components/free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp +++ b/components/free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp @@ -346,6 +346,8 @@ void EthEcatPdoFMMU::process_fake(Allocator& allocator, uint32_t period_microsec ecat_timer.Start(); while(1) { + ecat_timer.Wait(); + #if PROFILE_LEVEL > 0 { #warning ( "Profiling for RPDO subscribers is enabled !" ) @@ -369,8 +371,8 @@ void EthEcatPdoFMMU::process_fake(Allocator& allocator, uint32_t period_microsec } } #else - if(callback_ != nullptr) { - callback_(); + if(callback != nullptr) { + callback(); } #endif