mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
T12 to use 9x navigation + navigation refactoring (#6474)
* Move T12 to more suited 9x navigation * Navigation refactoring * Navigation refactoring continued * Channels count in ACCESS mode fix (24 channels max)
This commit is contained in:
parent
d7330afb59
commit
af9fe7fb63
11 changed files with 101 additions and 270 deletions
|
@ -535,10 +535,9 @@ bool isR9MModeAvailable(int mode)
|
|||
#if defined(PXX2)
|
||||
bool isPxx2IsrmChannelsCountAllowed(int channels)
|
||||
{
|
||||
if (g_model.moduleData[INTERNAL_MODULE].rfProtocol == MODULE_SUBTYPE_PXX1_ACCST_D16)
|
||||
return (channels <= 8);
|
||||
else
|
||||
return (channels % 8 == 0);
|
||||
if (g_model.moduleData[INTERNAL_MODULE].subType == MODULE_SUBTYPE_ISRM_PXX2_ACCST_D16 && channels > 8)
|
||||
return false;
|
||||
return (channels % 8 == 0);
|
||||
}
|
||||
#else
|
||||
bool isPxx2IsrmChannelsCountAllowed(int channels)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue