Improve HidDevice Identifier (#1476)

This commit is contained in:
Daniel Varga
2024-11-24 10:49:34 +01:00
committed by GitHub
parent 5421af5bf1
commit 1ca4ebca95
14 changed files with 244 additions and 215 deletions
@@ -20,7 +20,7 @@ internal sealed class HighFlowNext : Hardware
private readonly Sensor[] _voltages = new Sensor[2];
private readonly Sensor[] _alarms = new Sensor[4];
public HighFlowNext(HidDevice dev, ISettings settings) : base("high flow NEXT", new Identifier(dev.DevicePath), settings)
public HighFlowNext(HidDevice dev, ISettings settings) : base("high flow NEXT", new Identifier(dev), settings)
{
if (dev.TryOpen(out _stream))
{
@@ -93,7 +93,7 @@ internal sealed class HighFlowNext : Hardware
if (externalTempSensorConnected)
{
_temperatures[1].Value = rawExtTempValue / 100f;
_temperatures[1].Value = rawExtTempValue / 100f;
}
else
{