Fixed battery sensing.