File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -435,26 +435,22 @@ void bluetoothStop()
435
435
{
436
436
if (settings.bluetoothRadioType == BLUETOOTH_RADIO_SPP_AND_BLE)
437
437
{
438
- bluetoothSerialBle->register_callback (nullptr );
439
438
bluetoothSerialBle->flush (); // Complete any transfers
440
439
bluetoothSerialBle->disconnect (); // Drop any clients
441
440
bluetoothSerialBle->end (); // Release resources
442
441
443
- bluetoothSerialSpp->register_callback (nullptr );
444
442
bluetoothSerialSpp->flush (); // Complete any transfers
445
443
bluetoothSerialSpp->disconnect (); // Drop any clients
446
444
bluetoothSerialSpp->end (); // Release resources
447
445
}
448
446
else if (settings.bluetoothRadioType == BLUETOOTH_RADIO_SPP)
449
447
{
450
- bluetoothSerialSpp->register_callback (nullptr );
451
448
bluetoothSerialSpp->flush (); // Complete any transfers
452
449
bluetoothSerialSpp->disconnect (); // Drop any clients
453
450
bluetoothSerialSpp->end (); // Release resources
454
451
}
455
452
else if (settings.bluetoothRadioType == BLUETOOTH_RADIO_BLE)
456
453
{
457
- bluetoothSerialBle->register_callback (nullptr );
458
454
bluetoothSerialBle->flush (); // Complete any transfers
459
455
bluetoothSerialBle->disconnect (); // Drop any clients
460
456
bluetoothSerialBle->end (); // Release resources
You can’t perform that action at this time.
0 commit comments