DeviceSettings: Fix Compiling error

- I dont know why, but "which" wanted to use integers
-Fix Cycle charging restore