fix(): Поправлен process fake

This commit is contained in:
algin 2023-10-20 17:50:14 +03:00
parent 665ad56408
commit cb7cdfc87e

View File

@ -346,6 +346,8 @@ void EthEcatPdoFMMU::process_fake(Allocator& allocator, uint32_t period_microsec
ecat_timer.Start(); ecat_timer.Start();
while(1) { while(1) {
ecat_timer.Wait();
#if PROFILE_LEVEL > 0 #if PROFILE_LEVEL > 0
{ {
#warning ( "Profiling for RPDO subscribers is enabled !" ) #warning ( "Profiling for RPDO subscribers is enabled !" )
@ -369,8 +371,8 @@ void EthEcatPdoFMMU::process_fake(Allocator& allocator, uint32_t period_microsec
} }
} }
#else #else
if(callback_ != nullptr) { if(callback != nullptr) {
callback_(); callback();
} }
#endif #endif