Changed BLE connection event constant names to match LU groovy naming convention

This commit is contained in:
Martin Woolley 2016-04-15 13:56:23 +01:00
parent 87f7233a84
commit 051abec174
2 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,8 @@ DEALINGS IN THE SOFTWARE.
#define MICROBIT_ID_BLE 1000
#define MICROBIT_ID_BLE_UART 1001
#define MICROBIT_BLE_CONNECTED 1
#define MICROBIT_BLE_DISCONNECTED 2
#define MICROBIT_BLE_EVT_CONNECTED 1
#define MICROBIT_BLE_EVT_DISCONNECTED 2
#include "MESEvents.h"

View File

@ -109,7 +109,7 @@ static void storeSystemAttributes(Gap::Handle_t handle)
*/
static void bleDisconnectionCallback(const Gap::DisconnectionCallbackParams_t *reason)
{
MicroBitEvent(MICROBIT_ID_BLE,MICROBIT_BLE_DISCONNECTED);
MicroBitEvent(MICROBIT_ID_BLE,MICROBIT_BLE_EVT_DISCONNECTED);
storeSystemAttributes(reason->handle);
@ -122,7 +122,7 @@ static void bleDisconnectionCallback(const Gap::DisconnectionCallbackParams_t *r
*/
static void bleConnectionCallback(const Gap::ConnectionCallbackParams_t *params)
{
MicroBitEvent(MICROBIT_ID_BLE,MICROBIT_BLE_CONNECTED);
MicroBitEvent(MICROBIT_ID_BLE,MICROBIT_BLE_EVT_CONNECTED);
}
/**