Heltec v2.0 Battery detection and sleep

I have seen this topic covered before but have not seen any fix for this. I am still very new to all this, if there is a fix could someone point me in the right direction please. The current firmware does not pickup that the device is powered by a battery and will not go into sleep mode.