Fix bug in examples/bluetooth/ble/ble_delegate: deleted references

to unused scanCallback property.
This commit is contained in:
Greg 2019-05-02 14:22:20 -04:00
parent c5a523a8b8
commit 8ea3d57cf0
2 changed files with 0 additions and 4 deletions

View File

@ -7,7 +7,6 @@
BOOL wantScan;
BOOL autoConnect;
void (*scanCallback)(void* p);
dispatch_queue_t q;
CBUUID *looking_for;
}

View File

@ -65,7 +65,6 @@
- (void) stopScan
{
[manager stopScan];
scanCallback(nil);
}
#pragma mark - CBCentralManager delegate methods
@ -126,8 +125,6 @@
[self stopScan];
printf("Connecting\n");
[manager connectPeripheral:aPeripheral options:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:CBConnectPeripheralOptionNotifyOnDisconnectionKey]];
} else {
scanCallback(aPeripheral);
}
}