HeptaBattery

Dependencies:   PowerControl

Dependents:   Hepta_Battery HEPTA2_assembly_0720 HEPTA2_ALL HEPTA2_ALL_ver0803_02 ... more

Files at this revision

API Documentation at this revision

Comitter:
hepta2ume
Date:
Wed Jul 26 06:22:39 2017 +0000
Parent:
1:035ad1d97299
Commit message:
HeptaBattery_Lib

Changed in this revision

HeptaBattery.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 035ad1d97299 -r 821f36c03e26 HeptaBattery.cpp
--- 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)