aconno acnsensa project for iOS devices with iBeacon packets support.

Dependencies:   LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common

Revision:
10:a2364dee495f
Parent:
7:7fa0da697c8d
Child:
15:9870514aec92
--- a/main.cpp	Wed Mar 21 16:51:15 2018 +0000
+++ b/main.cpp	Fri Apr 20 09:50:06 2018 +0000
@@ -231,13 +231,17 @@
 
 void updateData(){
     static uint8_t advertisementType = 0;
+    int16_t temp_acc[3];
     
     if(advertisementType < 1){
         advertisementPacket.type = 0x00;
         readGyroscope((vector3_s *)advertisementPacket.gyroscope);
-        readAccelerometer((vector3_s *)advertisementPacket.accelerometer);
+        readAccelerometer((vector3_s *)temp_acc);
         readMagnetometer((vector3_s *)advertisementPacket.magnetometer);
         advertisementPacket.acc_lsb_value = (0xF9E);//(0x3D80);
+        advertisementPacket.accelerometer[0] = temp_acc[1];
+        advertisementPacket.accelerometer[1] = temp_acc[0];
+        advertisementPacket.accelerometer[2] = temp_acc[2];
         // ^--- That's in ug cuz MSB is 1
     }
     else{