Update BATTERY.cpp

This is the new .cpp file of the last modification to the library.