HeptaBattery library

Dependencies:   PowerControl

Dependents:   HEPTA_EPS

Files at this revision

API Documentation at this revision

Comitter:
HeptaSatTraining2019
Date:
Wed Aug 21 12:14:13 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 00fc48db2361 HeptaBattery.cpp
--- a/HeptaBattery.cpp	Wed Aug 08 10:50:17 2018 +0000
+++ b/HeptaBattery.cpp	Wed Aug 21 12:14:13 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;
     }