1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-21 15:25:17 +03:00

Improve fix for internal module not supporting PXX1

This commit is contained in:
3djc 2019-04-27 09:31:58 +02:00
parent d202f4d84f
commit 2d67629e17
2 changed files with 4 additions and 1 deletions

View file

@ -576,7 +576,7 @@ bool isInternalModuleAvailable(int moduleType)
#if defined(PXX1)
if (moduleType == MODULE_TYPE_XJT)
#if defined(PCBXLITES)
#if defined(INTMODULE_NO_PXX1)
return false;
#else
return (!isModuleUSingSport(EXTERNAL_MODULE, g_model.moduleData[EXTERNAL_MODULE].type));

View file

@ -671,6 +671,9 @@
// Internal Module
#define HARDWARE_INTERNAL_MODULE
#if defined(PCBXLITES) || defined(PCBX3)
#define INTMODULE_NO_PXX1
#endif
#if defined(PCBXLITE) || defined(PCBX3)
#define INTMODULE_RCC_APB1Periph RCC_APB1Periph_TIM3
#define INTMODULE_RCC_APB2Periph RCC_APB2Periph_USART1