modify battery detect

modify battery detect
(a) use channel 7
(b) use inetrnal reference