Skip to content

Commit

Permalink
Nothing is modified after TxConfig::SetDefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Aug 24, 2022
1 parent 8962d59 commit e9010d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/CONFIG/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,7 @@ TxConfig::SetDefaults(bool commit)

m_config.version = TX_CONFIG_VERSION | TX_CONFIG_MAGIC;
m_config.powerFanThreshold = PWR_250mW;

if (commit)
{
m_modified = ALL_CHANGED;
}
m_modified = ALL_CHANGED;

expresslrs_mod_settings_s *const modParams = get_elrs_airRateConfig(RATE_DEFAULT);
for (unsigned i=0; i<64; i++)
Expand All @@ -556,6 +552,7 @@ TxConfig::SetDefaults(bool commit)
#endif

SetModelId(0);
m_modified = 0;
}

/**
Expand Down

0 comments on commit e9010d6

Please sign in to comment.