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:
3djc
2016-10-16 09:22:36 +02:00
committed by Bertrand Songis
parent 504bb7a98c
commit 26d2de18c2
5 changed files with 14 additions and 18 deletions
+2 -1
View File
@@ -422,8 +422,9 @@ void modelDefault(uint8_t id)
}
#endif
#if defined(PCBTARANIS)
#if defined(PCBTARANIS) || defined(PCBHORUS)
g_model.moduleData[INTERNAL_MODULE].type = MODULE_TYPE_XJT;
g_model.moduleData[INTERNAL_MODULE].channelsCount = DEFAULT_CHANNELS(INTERNAL_MODULE);
#elif defined(PCBSKY9X)
g_model.moduleData[EXTERNAL_MODULE].type = MODULE_TYPE_PPM;
#endif