1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-17 05:15:18 +03:00

Heartbeat used on X10

This commit is contained in:
Bertrand Songis 2019-07-16 09:42:49 +02:00
parent a6fdaa290e
commit e0214ee51b
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
5 changed files with 14 additions and 6 deletions

View file

@ -141,8 +141,8 @@ TASK_FUNCTION(mixerTask)
run = true;
}
#if defined(PXX2) && defined(INTMODULE_HEARTBEAT)
if (moduleState[INTERNAL_MODULE].protocol == PROTOCOL_CHANNELS_PXX2_HIGHSPEED && heartbeatCapture.valid && heartbeatCapture.timestamp > lastRunTime) {
#if defined(INTMODULE_USART) && defined(INTMODULE_HEARTBEAT)
if ((moduleState[INTERNAL_MODULE].protocol == PROTOCOL_CHANNELS_PXX2_HIGHSPEED || moduleState[INTERNAL_MODULE].protocol == PROTOCOL_CHANNELS_PXX1_SERIAL) && heartbeatCapture.valid && heartbeatCapture.timestamp > lastRunTime) {
run = true;
}
#endif