Пример #1
0
        public void SetTemperatureSensor(IThermistor thermistor)
        {
            DisabledCheck();

            int  idx     = CoreUtil.GetRelativeThermistorByte(this, thermistor);
            byte ledData = GetLEDData();

            ledData &= 0xF8; //11111000
            ledData |= (byte)idx;
            SetLEDData(ledData);
        }
Пример #2
0
        public void SetTemperatureSensor(IThermistor thermistor)
        {
            DisabledCheck();

            int  idx     = CoreUtil.GetRelativeThermistorByte(this, thermistor);
            byte fanData = GetFanData();

            fanData &= 0x8F; //10001111
            fanData |= (byte)(idx << 4);
            SetFanData(fanData);
        }