mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 22:35:11 +00:00
Fixed an issue where the voltages, temperatures, fans and controls arrays could be null (instead of zero length) causing NullReferenceExceptions in SuperIOHardware.
This commit is contained in:
@@ -20,10 +20,10 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
|||||||
|
|
||||||
private readonly Chip chip;
|
private readonly Chip chip;
|
||||||
|
|
||||||
private readonly float?[] voltages;
|
private readonly float?[] voltages = new float?[0];
|
||||||
private readonly float?[] temperatures;
|
private readonly float?[] temperatures = new float?[0];
|
||||||
private readonly float?[] fans ;
|
private readonly float?[] fans = new float?[0];
|
||||||
private readonly float?[] controls;
|
private readonly float?[] controls = new float?[0];
|
||||||
|
|
||||||
// Hardware Monitor
|
// Hardware Monitor
|
||||||
private const uint ADDRESS_REGISTER_OFFSET = 0x05;
|
private const uint ADDRESS_REGISTER_OFFSET = 0x05;
|
||||||
|
Reference in New Issue
Block a user