low battery detection code is now 8 bytes smaller