mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-18 14:31:23 +02:00
Stop timeout handler before connecting to scale
This commit is contained in:
@@ -468,7 +468,8 @@ public abstract class BluetoothCommunication {
|
||||
if (!device.getAddress().equals(hwAddress)) {
|
||||
return;
|
||||
}
|
||||
// Stop scan and connect to the device on the main thread
|
||||
// Stop timeout and connect to the device on the main thread
|
||||
handler.removeCallbacksAndMessages(leScanCallback);
|
||||
handler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
Reference in New Issue
Block a user