HeptaBattery
Dependents: Hepta_Battery HEPTA2_assembly_0720 HEPTA2_ALL HEPTA2_ALL_ver0803_02 ... more
Diff: HeptaBattery.cpp
- Revision:
- 2:821f36c03e26
- Parent:
- 0:1682fa22a51e
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)