This commit is contained in:
Serge
2023-07-27 00:25:30 +02:00
parent d37e06d399
commit bc9d6be0d6

View File

@@ -33,6 +33,8 @@ namespace GHelper.Peripherals
public static void RefreshBatteryForAllDevices() public static void RefreshBatteryForAllDevices()
{ {
if (!IsAnyPeripheralConnect()) return;
lock (_LOCK) lock (_LOCK)
{ {
foreach (IPeripheral m in AllPeripherals()) foreach (IPeripheral m in AllPeripherals())