aconno acnsensa project for iOS devices with iBeacon packets support.

Dependencies:   LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common

Revision:
9:0453d592221b
Parent:
7:7fa0da697c8d
Child:
12:46fbc77fab33
diff -r b2d29ca87103 -r 0453d592221b main.cpp
--- a/main.cpp	Wed Mar 21 16:51:15 2018 +0000
+++ b/main.cpp	Fri Apr 20 09:45:52 2018 +0000
@@ -148,16 +148,7 @@
 
 uint8_t getBattery(){
     uint16_t batteryVoltage = analogIn.getData()[0];
-    /* // Old code.
-    if(batteryVoltage >= 810) return 100;
-    if(batteryVoltage >= 796) return 85;
-    if(batteryVoltage >= 782) return 75;
-    if(batteryVoltage >= 768) return 50;
-    if(batteryVoltage >= 754) return 25;
-    if(batteryVoltage >= 740) return 10;
-    return 0;
-    */
-    // New version.
+    
     const uint16_t zero_percent_limit = 739;
     const uint16_t onehundred_percent_limit = 810;
     const uint16_t percentage_increments = 5;