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

Fix X9D 2019 (#7987)

This commit is contained in:
3djc 2020-10-04 08:22:26 +02:00 committed by GitHub
parent 7eb76eb935
commit adcdf70f3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 19 deletions

View file

@ -317,24 +317,6 @@ inline bool isModuleAFHDS3(uint8_t idx)
return g_model.moduleData[idx].type == MODULE_TYPE_AFHDS3;
}
inline bool isModulePxx2(uint8_t idx)
{
if (idx != EXTERNAL_MODULE)
return false;
#if defined(PXX2)
#if defined(HARDWARE_EXTERNAL_MODULE_SIZE_SML)
if (g_model.moduleData[idx].type == MODULE_TYPE_XJT_LITE_PXX2 ||
g_model.moduleData[idx].type == MODULE_TYPE_R9M_LITE_PRO_PXX2)
return true;
#endif
#if defined(HARDWARE_EXTERNAL_MODULE_SIZE_SML)
if (g_model.moduleData[idx].type == MODULE_TYPE_R9M_LITE_PXX2)
return true;
#endif
#endif
return false;
}
// order is the same as in enum Protocols in myeeprom.h (none, ppm, pxx, pxx2, dsm, crossfire, multi, r9m, r9m2, sbus)
//qba667 count is not matching!
static const int8_t maxChannelsModules[] = { 0, 8, 8, 16, -2, 8, 4, 8, 16, 8, 10}; // relative to 8!

View file

@ -118,7 +118,7 @@ void telemetryWakeup()
#endif
#if defined(EXTMODULE_USART)
while (isModulePxx2(EXTERNAL_MODULE) && extmoduleFifo.getFrame(frame)) {
while (isModulePXX2(EXTERNAL_MODULE) && extmoduleFifo.getFrame(frame)) {
processPXX2Frame(EXTERNAL_MODULE, frame);
}
#endif