fix(): Поправлен process fake
This commit is contained in:
parent
665ad56408
commit
cb7cdfc87e
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user