My fork

Dependencies:   BLE_API mbed-dev-bin nRF51822-bluetooth-mdw

Fork of microbit-dal-bluetooth-mdw by Martin Woolley

Revision:
21:cab56b701601
Parent:
1:8aa5cdb4ab67
Child:
22:23d7b9a4b082
diff -r ad2a5c7debf4 -r cab56b701601 source/bluetooth/MicroBitMagnetometerService.cpp
--- a/source/bluetooth/MicroBitMagnetometerService.cpp	Wed Jul 13 12:17:51 2016 +0100
+++ b/source/bluetooth/MicroBitMagnetometerService.cpp	Wed Jul 13 12:17:53 2016 +0100
@@ -74,7 +74,7 @@
     magnetometerPeriodCharacteristicHandle = magnetometerPeriodCharacteristic.getValueHandle();
 
     ble.gattServer().notify(magnetometerDataCharacteristicHandle,(uint8_t *)magnetometerDataCharacteristicBuffer, sizeof(magnetometerDataCharacteristicBuffer));
-    ble.gattServer().notify(magnetometerBearingCharacteristicHandle,(uint8_t *)&magnetometerBearingCharacteristicBuffer, sizeof(magnetometerDataCharacteristicBuffer));
+    ble.gattServer().notify(magnetometerBearingCharacteristicHandle,(uint8_t *)&magnetometerBearingCharacteristicBuffer, sizeof(magnetometerBearingCharacteristicBuffer));
     ble.gattServer().write(magnetometerPeriodCharacteristicHandle, (const uint8_t *)&magnetometerPeriodCharacteristicBuffer, sizeof(magnetometerPeriodCharacteristicBuffer));
 
     ble.onDataWritten(this, &MicroBitMagnetometerService::onDataWritten);
@@ -153,4 +153,4 @@
 
 const uint8_t  MicroBitMagnetometerServiceBearingUUID[] = {
     0xe9,0x5d,0x97,0x15,0x25,0x1d,0x47,0x0a,0xa0,0x62,0xfa,0x19,0x22,0xdf,0xa9,0xa8
-};
+};
\ No newline at end of file