HeptaBattery

Dependencies:   PowerControl

Dependents:   Hepta_Battery HEPTA2_assembly_0720 HEPTA2_ALL HEPTA2_ALL_ver0803_02 ... more

Revision:
2:821f36c03e26
Parent:
0:1682fa22a51e
--- a/HeptaBattery.cpp	Mon Jul 24 05:52:29 2017 +0000
+++ b/HeptaBattery.cpp	Wed Jul 26 06:22:39 2017 +0000
@@ -3,7 +3,7 @@
 
 HeptaBattery::HeptaBattery(PinName bat, PinName bat_ct) : _bat(bat),_bat_ct(bat_ct)
 {
-    _bat_ct = 0;
+    _bat_ct = 1;
     PHY_PowerDown();//Ethernet PHYchip停止
 }
 
@@ -15,7 +15,7 @@
 void HeptaBattery::fast_charge()
 {
     //Peripheral_PowerDown(0x7DFEDFEE);怪しい
-    _bat_ct = 1;
+    _bat_ct = 0;
 }
 
 void HeptaBattery::vol_u16(char* bt_u16, int *dsize)