mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-30 13:57:38 +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:
parent
6527a4450d
commit
84d37eec67
@ -20,10 +20,10 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
|
||||
private readonly Chip chip;
|
||||
|
||||
private readonly float?[] voltages;
|
||||
private readonly float?[] temperatures;
|
||||
private readonly float?[] fans ;
|
||||
private readonly float?[] controls;
|
||||
private readonly float?[] voltages = new float?[0];
|
||||
private readonly float?[] temperatures = new float?[0];
|
||||
private readonly float?[] fans = new float?[0];
|
||||
private readonly float?[] controls = new float?[0];
|
||||
|
||||
// Hardware Monitor
|
||||
private const uint ADDRESS_REGISTER_OFFSET = 0x05;
|
||||
|
Loading…
x
Reference in New Issue
Block a user