Format BluetoothDevices.cpp

This commit is contained in:
scorpion-26 2023-06-10 23:40:29 +02:00
parent 180e472551
commit 2a66f1d64c

View file

@ -48,7 +48,8 @@ namespace BluetoothDevices
button.RemoveClass("inactive");
state |= DeviceState::RequestConnect;
System::ConnectBTDevice(device.device, [&dev = device, &but = button](bool success, System::BluetoothDevice&)
System::ConnectBTDevice(device.device,
[&dev = device, &but = button](bool success, System::BluetoothDevice&)
{
deviceMutex.lock();
if (!success)
@ -66,7 +67,8 @@ namespace BluetoothDevices
button.RemoveClass("active");
state |= DeviceState::RequestDisconnect;
System::DisconnectBTDevice(device.device, [&dev = device, &but = button](bool success, System::BluetoothDevice&)
System::DisconnectBTDevice(device.device,
[&dev = device, &but = button](bool success, System::BluetoothDevice&)
{
deviceMutex.lock();
if (!success)