I am work on settings for a temperature control unit. Fig.1 is my settings control page. If i adjust the deadband or temp and press the save button, the settings save like they should. If i adjust the deadband or temp and press the back or home button, it also saves the settings which i do not want. Am i missing a statement in my back/home button? Below is my void loop section. If needed i will provide a github link for the full source code.Any help would be greatly appreciated.
Fig.1 shows my settings page. Fig.2 shows adjusting deadband. Fig.3 shows main menu after back or home button is hit from figure 2 after deadband adjustment. fig.4 shows settings screen again after hitting temp button in fig.3 and you can see it saved the values when it should not have.