Improvements to battery monitoring (#1158)
* Check whether battery values are available * Rename _degradationPercentage to _degradationLevel * Add support for temperature monitoring * Include the battery device name and tag in the hardware identifier * Set sensor index value properly * Fix temperature conversion The returned temperature value must be divided, not multiplied. * Disable sensors that have a "null" value * Fix random symbols in battery device name and manufacturer
This commit is contained in:
@@ -18,7 +18,11 @@ public class Kernel32
|
||||
|
||||
public const int ERROR_SERVICE_EXISTS = unchecked((int)0x80070431);
|
||||
|
||||
internal const uint BATTERY_UNKNOWN_CAPACITY = 0xFFFFFFFF;
|
||||
internal const uint BATTERY_UNKNOWN_VOLTAGE = 0xFFFFFFFF;
|
||||
internal const int BATTERY_UNKNOWN_RATE = unchecked((int)0x80000000);
|
||||
internal const uint BATTERY_UNKNOWN_TIME = 0xFFFFFFFF;
|
||||
|
||||
internal const string IntelNVMeMiniPortSignature1 = "NvmeMini";
|
||||
internal const string IntelNVMeMiniPortSignature2 = "IntelNvm";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user