internal static byte GetRelativeThermistorByte(Sensor.BaseSensorDevice sensor, IThermistor thermistor) { if (thermistor == null) { return(0); } if (!(thermistor is Thermistor)) { return(7); } Thermistor thermistorCast = (Thermistor)thermistor; return((byte)((sensor.device == thermistorCast.device) ? thermistorCast.id : 7)); }
internal static bool DoesThermistorNeedManualPush(Sensor.BaseSensorDevice sensor, IThermistor thermistor) { return(GetRelativeThermistorByte(sensor, thermistor) == 7); }