Inheritance: CorsairLinkPlusPlus.Common.Sensor.BaseSensorDevice, ISensor
Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 internal static bool DoesThermistorNeedManualPush(Sensor.BaseSensorDevice sensor, IThermistor thermistor)
 {
     return(GetRelativeThermistorByte(sensor, thermistor) == 7);
 }