|
@@ -111,9 +111,6 @@ class _SearchDeviceConnectDialog extends State<SearchDeviceConnectDialog> with S
|
|
|
_checkError() {
|
|
|
setState(() {
|
|
|
_error = _timer == null && (_state[0] == DeviceConnectionState.disconnected || (_state[1] == DeviceConnectionState.disconnected || _state[1] == DeviceConnectionState.disconnecting));
|
|
|
- if(_error){
|
|
|
- bluetooth.disconnectDevice("连接超时");
|
|
|
- }
|
|
|
// print("bluetooth - check error $_error $_state ");
|
|
|
});
|
|
|
// bool finish = _state[0] == DeviceConnectionState.connected && _state[1] == DeviceConnectionState.connected;
|