상속: CorsairLinkPlusPlus.Common.Sensor.BaseSensorDevice, ISensor
예제 #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));
        }
예제 #2
0
 internal static bool DoesThermistorNeedManualPush(Sensor.BaseSensorDevice sensor, IThermistor thermistor)
 {
     return(GetRelativeThermistorByte(sensor, thermistor) == 7);
 }