Mouse refreshes battery again during "ReadSensors". But it does that nonblocking and event driven.

This commit is contained in:
IceStormNG
2023-07-27 10:19:17 +02:00
parent 6e4b5226f5
commit a323bd85ab
2 changed files with 16 additions and 0 deletions

View File

@@ -814,6 +814,7 @@ namespace GHelper
string battery = "";
HardwareControl.ReadSensors();
Task.Run((Action)PeripheralsProvider.RefreshBatteryForAllDevices);
if (HardwareControl.cpuTemp > 0)
cpuTemp = ": " + Math.Round((decimal)HardwareControl.cpuTemp).ToString() + "°C";