fix: compiling without external module (#5426)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Raphael Coeffic
2024-08-13 13:18:26 +02:00
committed by GitHub
co-authored by raphaelcoeffic
parent b83adc9d9c
commit b6d0bac2a0
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -887,7 +887,7 @@ bool isExternalModuleAvailable(int moduleType)
return false;
#endif
#if defined(HARDWARE_EXTERNAL_MODULE_SIZE_SML) and !defined(EXTMODULE_USART_GPIO)
#if defined(HARDWARE_EXTERNAL_MODULE_SIZE_SML) and !defined(EXTMODULE_USART)
if (moduleType == MODULE_TYPE_XJT_LITE_PXX2 ||
moduleType == MODULE_TYPE_R9M_PXX2)
return false;