Skip to content

Commit

Permalink
Set default values to the old legacy FrSky values
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic authored and pfeerick committed Oct 12, 2022
1 parent f2935a7 commit 9a65076
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions radio/src/model_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ void setDefaultGVars()
#endif
}

void setDefaultRSSIValues()
{
// Set to legacy FrSky values until
// a better solution is found (module specific?)
//
g_model.rfAlarms.warning = 45;
g_model.rfAlarms.critical = 42;
}

void setVendorSpecificModelDefaults(uint8_t id)
{
#if defined(FRSKY_RELEASE)
Expand Down Expand Up @@ -108,6 +117,7 @@ void applyDefaultTemplate()
setDefaultInputs();
setDefaultMixes();
setDefaultGVars();
setDefaultRSSIValues();

setDefaultModelRegistrationID();

Expand Down

0 comments on commit 9a65076

Please sign in to comment.