Skip to content

Commit efe7ca1

Browse files
reset event handling at destruction
1 parent 12077e2 commit efe7ca1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

BLE_Privacy/source/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ class PrivacyDevice : private mbed::NonCopyable<PrivacyDevice>,
6262
_bonded(false),
6363
_led1(LED1, 0) { };
6464

65-
virtual ~PrivacyDevice() { };
65+
virtual ~PrivacyDevice() {
66+
_ble.onEventsToProcess(NULL);
67+
};
6668

6769
/** Start BLE interface initialisation */
6870
void run()

0 commit comments

Comments
 (0)