Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: hw/Gap.h
- Revision:
- 77:1436ecf09583
- Parent:
- 75:d08bdef22500
- Child:
- 104:6ef5abef5714
diff -r 103fac6e36d1 -r 1436ecf09583 hw/Gap.h
--- a/hw/Gap.h Mon Jun 09 08:29:22 2014 +0100
+++ b/hw/Gap.h Mon Jun 09 08:34:47 2014 +0100
@@ -68,24 +68,24 @@
void handleEvent(GapEvents::gapEvent_e type) {
switch (type) {
- case GapEvents::GAP_EVENT_TIMEOUT:
- state.advertising = 0;
- if (onTimeout) {
- onTimeout();
- }
- break;
- case GapEvents::GAP_EVENT_CONNECTED:
- state.connected = 1;
- if (onConnection) {
- onConnection();
- }
- break;
- case GapEvents::GAP_EVENT_DISCONNECTED:
- state.connected = 0;
- if (onDisconnection) {
- onDisconnection();
- }
- break;
+ case GapEvents::GAP_EVENT_TIMEOUT:
+ state.advertising = 0;
+ if (onTimeout) {
+ onTimeout();
+ }
+ break;
+ case GapEvents::GAP_EVENT_CONNECTED:
+ state.connected = 1;
+ if (onConnection) {
+ onConnection();
+ }
+ break;
+ case GapEvents::GAP_EVENT_DISCONNECTED:
+ state.connected = 0;
+ if (onDisconnection) {
+ onDisconnection();
+ }
+ break;
}
}
