HeptaBattery Library

Dependencies:   PowerControl

Dependents:   Lab9-01_All_transmit Lab9-03_Thermal_chamber 3daf572bcae1 Team ... more

Fork of HeptaBattery by CLTP 8

Files at this revision

API Documentation at this revision

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;
     }