1.use history value average(batt/curr) to decide battery value and device plug out status
2.find issue after start boost, there should add a 1000ms' delay before entering low power mode
3.Add watch dog, servicing it every less 1024ms