mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 21:35:27 +03:00
Change default at model creation from XJT-D16 8CH to XJT-D16 16CH on … (#3913)
* Change default at model creation from XJT-D16 8CH to XJT-D16 16CH on Taranis and Horus * Set defaultto 16CH also on protocol change * External module on Taranis * MACRO's are good for you * They are so good they should be used everywhere ! * And everywhere also includes the 9X UIs!
This commit is contained in:
parent
504bb7a98c
commit
26d2de18c2
5 changed files with 14 additions and 18 deletions
|
@ -440,6 +440,7 @@ void memswap(void * a, void * b, uint8_t size);
|
|||
#define MAX_CHANNELS(idx) (idx==EXTERNAL_MODULE ? MAX_EXTERNAL_MODULE_CHANNELS() : MAX_TRAINER_CHANNELS_M8())
|
||||
#define NUM_CHANNELS(idx) (8+g_model.moduleData[idx].channelsCount)
|
||||
#endif
|
||||
#define DEFAULT_CHANNELS(idx) (IS_MODULE_PPM(idx) ? 0 : MAX_CHANNELS(idx))
|
||||
|
||||
#if defined(CPUARM)
|
||||
#define MASK_CFN_TYPE uint64_t // current max = 64 function switches
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue