mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-11 00:28:14 +00:00
Failsafe
This commit is contained in:
parent
19f879da7f
commit
0d43614ac3
@ -109,9 +109,22 @@ static void multi_send_status()
|
|||||||
else
|
else
|
||||||
if (!IS_BIND_DONE_on)
|
if (!IS_BIND_DONE_on)
|
||||||
flags |= 0x08;
|
flags |= 0x08;
|
||||||
//Failsafe supported
|
#ifdef FAILSAFE_ENABLE
|
||||||
if((protocol==MODE_HISKY && sub_protocol==HK310) || protocol==MODE_DEVO || protocol==MODE_SFHSS || protocol==MODE_WK2x01 || protocol==MODE_AFHDS2A) //|| protocol==MODE_FRSKYX)
|
//Is failsafe supported?
|
||||||
flags |= 0x20;
|
switch (protocol)
|
||||||
|
{
|
||||||
|
case MODE_HISKY:
|
||||||
|
if(sub_protocol!=HK310)
|
||||||
|
break;
|
||||||
|
case MODE_AFHDS2A:
|
||||||
|
case MODE_DEVO:
|
||||||
|
case MODE_SFHSS:
|
||||||
|
case MODE_WK2x01:
|
||||||
|
flags |= 0x20; //Yes
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
Serial_write(flags);
|
Serial_write(flags);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user