Kenji Arai / Mbed 2 deprecated BLE_EddystoneBeacon_w_ACC_TY51822

Dependencies:   BLE_API LIS3DH mbed nRF51822 BMC050 nRF51_LowPwr nRF51_Vdd

Fork of BLE_EddystoneBeacon_Service by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
mbedAustin
Date:
Thu Jul 23 06:48:50 2015 +0000
Parent:
20:3b133cfafc39
Child:
22:160766614338
Commit message:
[[Fix]] made RFU field in UID frame BigEndian Compliant (again, facepalm)

Changed in this revision

ZipBeaconConfigService.h Show annotated file Show diff for this revision Revisions of this file
--- a/ZipBeaconConfigService.h	Thu Jul 23 06:43:51 2015 +0000
+++ b/ZipBeaconConfigService.h	Thu Jul 23 06:48:50 2015 +0000
@@ -257,8 +257,8 @@
             Data[index++] = defaultUidInstanceID[x];
         }
         if(0 != uidRFU) {                                // 2B RFU, include if non-zero, otherwise ignore
+            Data[index++] = (uint8_t)(uidRFU >> 0);
             Data[index++] = (uint8_t)(uidRFU >> 8);
-            Data[index++] = (uint8_t)uidRFU;
         }
         DBG("construcUIDFrame %d, %d",maxSize,index);
         return index;