X13.Periphery.TWIDriver.LM75.Recv C# (CSharp) Method

Recv() public method

public Recv ( byte buf ) : bool
buf byte
return bool
      public override bool Recv(byte[] buf) {
        if(buf[0]==addr) {
          if(buf[1]==0x10 && buf.Length==6) {
            _T.value=(short)((buf[4]<<8) | buf[5])/256.0;
            _present.value=true;
          } else {
            _present.value=false;
            if(TWIDriver._verbose) {
              Log.Error("{0}.recv - {1}", _T.path, (AckFlags)buf[1]);
            }
          }
          _pt=DateTime.Now.AddSeconds(_rand.Next(45, 75));
          _busy=false;
          return true;
        }
        return false;
      }
      public override bool Poll(out byte[] buf) {