Browse Source

Merge branch 'new_dev' of https://github.com/deepcloud2048/deep_voice into new_dev

weicu
tanlongsheng 11 months ago
parent
commit
3c8ae03a50
  1. 5
      lib/data/services/ble_manager.dart

5
lib/data/services/ble_manager.dart

@ -1156,6 +1156,11 @@ class BleManager extends GetxService {
List<String>? uuids,
}) async {
try {
// 在注册新设备前先清除旧设备信息
if (macAddress != null && macAddress != currentDeviceAddress) {
clearDeviceInfo(); // 清除上一个设备的信息
}
// 保存设备地址信息
if (macAddress != null) {
currentDeviceAddress = macAddress;

Loading…
Cancel
Save