|
|
@ -177,7 +177,7 @@ class HomeController extends GetxController { |
|
|
bool wasConnected = _isFullyConnected.value; |
|
|
bool wasConnected = _isFullyConnected.value; |
|
|
bool isNowConnected = hasClassicBluetooth && hasBleConnection; |
|
|
bool isNowConnected = hasClassicBluetooth && hasBleConnection; |
|
|
|
|
|
|
|
|
bool isGuideCompleted = _storage.read('home_guide') ?? false; |
|
|
//bool isGuideCompleted = _storage.read('home_guide') ?? false; |
|
|
|
|
|
|
|
|
if (isNowConnected && currentDevice == null) { |
|
|
if (isNowConnected && currentDevice == null) { |
|
|
isNowConnected = false; |
|
|
isNowConnected = false; |
|
|
@ -197,7 +197,7 @@ class HomeController extends GetxController { |
|
|
// 移除了连接成功后的电池信息刷新 |
|
|
// 移除了连接成功后的电池信息刷新 |
|
|
|
|
|
|
|
|
// 连接成功后检查OTA升级 |
|
|
// 连接成功后检查OTA升级 |
|
|
if (isGuideCompleted) { |
|
|
if (noviceGuideService.isHomeGuide) { |
|
|
Future.delayed(const Duration(seconds: 2), () { |
|
|
Future.delayed(const Duration(seconds: 2), () { |
|
|
_checkOtaUpgrade(); |
|
|
_checkOtaUpgrade(); |
|
|
}); |
|
|
}); |
|
|
|