mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
New protocol and telemetry: FlySky AFHDS2A (#3948)
* New protocol for multimode FlySky AFHDS2A * Also add AFHDS2A protocol to companion * fix compile error
This commit is contained in:
parent
d218b33609
commit
92dde79dec
23 changed files with 179 additions and 71 deletions
|
@ -164,6 +164,11 @@ void setupPulsesMultimodule(uint8_t port)
|
|||
}
|
||||
}
|
||||
|
||||
// For custom protocol send unmofied type byte
|
||||
if (g_model.moduleData[port].getMultiProtocol(true) == MM_RF_CUSTOM_SELECTED)
|
||||
type = g_model.moduleData[port].getMultiProtocol(false);
|
||||
|
||||
|
||||
// header, byte 0, 0x55 for proto 0-31 0x54 for 32-63
|
||||
if (type <= 31)
|
||||
sendByteMulti(0x55);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue