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:
parent
a6fdaa290e
commit
e0214ee51b
5 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue