File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -70,16 +70,16 @@ class PrivacyDevice : private mbed::NonCopyable<PrivacyDevice>,
70
70
/* to show we're running we'll blink every 500ms */
71
71
_event_queue.call_every (500 , this , &PrivacyDevice::blink);
72
72
73
+ /* this will inform us off all events so we can schedule their handling
74
+ * using our event queue */
75
+ _ble.onEventsToProcess (
76
+ makeFunctionPointer (this , &PrivacyDevice::schedule_ble_events)
77
+ );
78
+
73
79
if (_ble.hasInitialized ()) {
74
80
/* ble instance already initialised, skip init and start activity */
75
81
start ();
76
82
} else {
77
- /* this will inform us off all events so we can schedule their handling
78
- * using our event queue */
79
- _ble.onEventsToProcess (
80
- makeFunctionPointer (this , &PrivacyDevice::schedule_ble_events)
81
- );
82
-
83
83
ble_error_t error = _ble.init (this , &PrivacyDevice::on_init_complete);
84
84
85
85
if (error) {
You can’t perform that action at this time.
0 commit comments