Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Lab9-01_All_transmit Lab9-03_Thermal_chamber 3daf572bcae1 Team ... more
Fork of HeptaBattery by
Revision 11:65c3076b5c24, committed 2019-08-22
- Comitter:
- HEPTA
- Date:
- Thu Aug 22 05:40:34 2019 +0000
- Parent:
- 9:7d0aaedfe1c0
- Commit message:
Changed in this revision
HeptaBattery.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7d0aaedfe1c0 -r 65c3076b5c24 HeptaBattery.cpp --- a/HeptaBattery.cpp Wed Aug 08 10:50:17 2018 +0000 +++ b/HeptaBattery.cpp Thu Aug 22 05:40:34 2019 +0000 @@ -42,22 +42,22 @@ //Above 4.2 or more if(*Bat>=4.2) { _bat_ct = 1; - LPC_SC->CCLKCFG = 2; - SystemCoreClockUpdate(); + // LPC_SC->CCLKCFG = 2; + //SystemCoreClockUpdate(); *flag = 0; } //3.7 < Voltage < 4.1 else if(*Bat<=4.1 && *Bat>=3.7) { _bat_ct = 1; - LPC_SC->CCLKCFG = 2; - SystemCoreClockUpdate(); + //LPC_SC->CCLKCFG = 2; + //SystemCoreClockUpdate(); *flag = 0; } //3.5V or less else if(*Bat<=3.5) { _bat_ct = 0; - LPC_SC->CCLKCFG = 5; - SystemCoreClockUpdate(); + //LPC_SC->CCLKCFG = 5; + //SystemCoreClockUpdate(); *flag = 1; }