fix: Companion will set critical radio general settings to profile defaults if mismatched boards (#1575)

* Do not import potentially conflicting radio settings

* Revert "Do not import potentially conflicting radio settings"

This reverts commit 06a19c04d6de341568362b87311264081aa3d38f.

* Override critical general settings to defaults when board mismatch
This commit is contained in:
Neil Horne
2022-03-08 11:49:34 +10:00
committed by GitHub
parent f764dfcc2e
commit 70a4f6c154
3 changed files with 22 additions and 6 deletions
+3 -1
View File
@@ -141,7 +141,9 @@ class GeneralSettings {
enum TelemetryBaudrate {
};
GeneralSettings();
GeneralSettings() { clear(); }
void clear();
void init();
void convert(RadioDataConversionState & cstate);
void setDefaultControlTypes(Board::Type board);