From cb7cdfc87eca43c697c2f87555291ee479639ed3 Mon Sep 17 00:00:00 2001 From: algin Date: Fri, 20 Oct 2023 17:50:14 +0300 Subject: [PATCH] =?UTF-8?q?fix():=20=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20process=20fake?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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