Fix Xlite R9 UI (pulse still wrong)

This commit is contained in:
3djc
2018-12-13 17:35:07 +01:00
parent 32146e767a
commit 0f8c4a7a7f
4 changed files with 90 additions and 7 deletions
+11 -1
View File
@@ -494,12 +494,22 @@ bool isR9ModuleRunning(int module)
return g_model.moduleData[module].type == MODULE_TYPE_R9M && R9ModuleStreaming;
#endif
}
#if defined(PCBXLITE)
bool isR9MModeAvailable(int mode)
{
#if defined(MODULE_R9M_FLEX_FW)
return mode >= MODULE_SUBTYPE_R9M_EUPLUS;
#else
return mode <= MODULE_SUBTYPE_R9M_EU;
#endif
}
#else
bool isR9MModeAvailable(int mode)
{
return mode <= MODULE_SUBTYPE_R9M_EUPLUS;
}
#endif
bool isR9MMFlex(int module)
{
return g_model.moduleData[module].r9m.region == MODULE_R9M_REGION_FLEX;