EPS
Dependents: HEPTA_assembly template HEPTA_GS
Fork of HeptaBattery by
Diff: HeptaBattery.cpp
- Revision:
- 2:821f36c03e26
- Parent:
- 0:1682fa22a51e
- Child:
- 3:16fd450bcf16
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)