[Companion] Change instance only for FrSky telemetry (#6671) (#6677)

* [Companion] Change instance only for FrSky telemetry (#6671)

* same for all PXX1 modules
This commit is contained in:
Raphael Coeffic
2019-08-28 11:38:44 +02:00
committed by Bertrand Songis
parent 2546967df8
commit 40fe6022b4
3 changed files with 23 additions and 3 deletions
+14
View File
@@ -44,6 +44,20 @@ bool ModuleData::isPxx2Module() const
}
}
bool ModuleData::isPxx1Module() const
{
switch(protocol){
case PULSES_PXX_XJT_X16:
case PULSES_PXX_R9M:
case PULSES_PXX_R9M_LITE:
case PULSES_PXX_R9M_LITE_PRO:
return true;
default:
return false;
}
}
QString ModuleData::rfProtocolToString() const
{
switch (protocol) {