mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 11:29:51 +03:00
Port all Multi changes also to 9X and Horus UI
This commit is contained in:
parent
4082a320b8
commit
543a1d14e8
5 changed files with 99 additions and 84 deletions
|
@ -679,18 +679,18 @@ PACK(struct ModuleData {
|
|||
};
|
||||
|
||||
// Helper functions to set both of the rfProto protocol at the same time
|
||||
inline uint8_t getMultiProtocol(bool returnCustom)
|
||||
{
|
||||
NOBACKUP(inline uint8_t getMultiProtocol(bool returnCustom) {
|
||||
if (returnCustom && multi.customProto)
|
||||
return MM_RF_CUSTOM_SELECTED;
|
||||
return ((uint8_t) (rfProtocol & 0x0f)) + (multi.rfProtocolExtra << 4);
|
||||
}
|
||||
})
|
||||
|
||||
inline void setMultiProtocol(uint8_t proto)
|
||||
NOBACKUP(inline void setMultiProtocol(uint8_t proto)
|
||||
{
|
||||
rfProtocol = (uint8_t) (proto & 0x0f);
|
||||
multi.rfProtocolExtra = (proto & 0x30) >> 4;
|
||||
}
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue