File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ bool commandAT(const char * commandString)
183183 return true ;
184184
185185 case (' T' ): // ATT - Enter training mode
186- settings = tempSettings; // Apply user's modifications
186+ trainingSettings = tempSettings; // Apply user's modifications
187187 selectTraining ();
188188 return true ;
189189
Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ void updateButton()
268268 trainState = TRAIN_PRESSED;
269269
270270 trainViaButton = true ;
271+ trainingSettings = settings;
271272 selectTraining ();
272273 }
273274 else if (trainState == TRAIN_PRESSED && trainBtn->wasReleased ())
@@ -276,7 +277,7 @@ void updateButton()
276277 }
277278 else if (trainState == TRAIN_IN_PROCESS && trainBtn->wasReleased ())
278279 {
279- settings = tempSettings ; // Return to original radio settings
280+ settings = trainingSettings ; // Return to original radio settings
280281
281282 recordSystemSettings (); // Record original settings
282283
Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ void beginTrainingServer()
103103// Perform the common training initialization
104104void commonTrainingInitialization ()
105105{
106- // Save the current settings
107- trainingSettings = settings;
108-
109106 // Use common radio settings between the client and server for training
110107 settings = defaultSettings;
111108 settings.dataScrambling = true ; // Scramble the data
You can’t perform that action at this time.
0 commit comments