Changed BLE connection event constant names to match LU groovy naming convention
This commit is contained in:
parent
87f7233a84
commit
051abec174
|
@ -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"
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue