Actually don't run ecat-slv_poll()

This commit is contained in:
Hakan Bastedt
2024-01-23 15:48:59 +01:00
parent e95a098367
commit ddffbe5f8b

View File

@@ -125,7 +125,8 @@ void loop(void)
serveIRQ = 0;
ESCvar.PrevTime = ESCvar.Time;
}
if (nowTime < 500 || nowTime > 1500) // Don't run ecat_slv_poll when expecting to server interrupt
uint64_t superNow=micros();
if (superNow - nowTime < 500 || superNow - nowTime > 1500) // Don't run ecat_slv_poll when expecting to server interrupt
ecat_slv_poll();
}