public void SetThermalPackageSensor(int sensorId) { if (sensorId < -1) { throw new ArgumentException(nameof(sensorId)); } if (sensorId + 1 > ThermalSensors.Count) { throw new ArgumentOutOfRangeException(nameof(sensorId)); } PackageSensor = ThermalSensors.ElementAt(sensorId); }
public ThermalResistanceSensor(ThermalSensors functionIndex, long readinterval) : base((int)functionIndex, readinterval) { }
public ThermalResistanceSensor(ThermalSensors functionIndex) : base((int)functionIndex) { }