Battery Friend: Change the gamma rule for generic change of gamma value

We want to prevent that gamma is stuck on value 6 after disabling the battery friend, so we define the complete function for both cases