mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05:17 +03:00
Improve fix for internal module not supporting PXX1
This commit is contained in:
parent
d202f4d84f
commit
2d67629e17
2 changed files with 4 additions and 1 deletions
|
@ -576,7 +576,7 @@ bool isInternalModuleAvailable(int moduleType)
|
||||||
|
|
||||||
#if defined(PXX1)
|
#if defined(PXX1)
|
||||||
if (moduleType == MODULE_TYPE_XJT)
|
if (moduleType == MODULE_TYPE_XJT)
|
||||||
#if defined(PCBXLITES)
|
#if defined(INTMODULE_NO_PXX1)
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
return (!isModuleUSingSport(EXTERNAL_MODULE, g_model.moduleData[EXTERNAL_MODULE].type));
|
return (!isModuleUSingSport(EXTERNAL_MODULE, g_model.moduleData[EXTERNAL_MODULE].type));
|
||||||
|
|
|
@ -671,6 +671,9 @@
|
||||||
|
|
||||||
// Internal Module
|
// Internal Module
|
||||||
#define HARDWARE_INTERNAL_MODULE
|
#define HARDWARE_INTERNAL_MODULE
|
||||||
|
#if defined(PCBXLITES) || defined(PCBX3)
|
||||||
|
#define INTMODULE_NO_PXX1
|
||||||
|
#endif
|
||||||
#if defined(PCBXLITE) || defined(PCBX3)
|
#if defined(PCBXLITE) || defined(PCBX3)
|
||||||
#define INTMODULE_RCC_APB1Periph RCC_APB1Periph_TIM3
|
#define INTMODULE_RCC_APB1Periph RCC_APB1Periph_TIM3
|
||||||
#define INTMODULE_RCC_APB2Periph RCC_APB2Periph_USART1
|
#define INTMODULE_RCC_APB2Periph RCC_APB2Periph_USART1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue