Skip to content

Commit c7d12b4

Browse files
committed
Set profile to default when creating new.
1 parent ac1cc04 commit c7d12b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Firmware/RTK_Surveyor/menuMain.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ void menuUserProfiles()
149149
profileNumber = incoming - 1;
150150

151151
sprintf(settingsFileName, "/%s_Settings_%d.txt", platformFilePrefix, profileNumber); //Update file name with new profileNumber
152+
153+
//Start this profile with default settings
154+
Settings tempSettings;
155+
settings = tempSettings;
156+
157+
recordSystemSettings();
152158
}
153159
else if (incoming == MAX_PROFILE_COUNT + 1)
154160
{

0 commit comments

Comments
 (0)