mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
fix vendor specific model defaults
This commit is contained in:
parent
9579e5d833
commit
569b449861
1 changed files with 3 additions and 1 deletions
|
@ -426,7 +426,7 @@ void defaultGVars()
|
||||||
// - vendors should provide their own defaults in their own builds,
|
// - vendors should provide their own defaults in their own builds,
|
||||||
// - and disclose them by their own means (GPL compliance)
|
// - and disclose them by their own means (GPL compliance)
|
||||||
//
|
//
|
||||||
void vendorSpecificModelDefaults()
|
void setVendorSpecificModelDefaults()
|
||||||
{
|
{
|
||||||
#if defined(FRSKY_RELEASE)
|
#if defined(FRSKY_RELEASE)
|
||||||
g_model.moduleData[INTERNAL_MODULE].type = IS_PXX2_INTERNAL_ENABLED() ? MODULE_TYPE_ISRM_PXX2 : MODULE_TYPE_XJT_PXX1;
|
g_model.moduleData[INTERNAL_MODULE].type = IS_PXX2_INTERNAL_ENABLED() ? MODULE_TYPE_ISRM_PXX2 : MODULE_TYPE_XJT_PXX1;
|
||||||
|
@ -473,6 +473,8 @@ void applyDefaultTemplate()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: what about switch warnings in non-color LCD radios?
|
// TODO: what about switch warnings in non-color LCD radios?
|
||||||
|
|
||||||
|
setVendorSpecificModelDefaults();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue