public byte ReadLiquidLevelSwitchStatus()
        {
            if (!this.hasPumping)
            {
                return(1);
            }

            BoardCardControl2 liquidLevelSwitchCtr =
                this.boardCardManager.GetBoardCardByDescription(liquidLevelSwitchChannle.DeviceDescription);

            //int startPort = 0;
            //int portCount = 0;
            if (liquidLevelSwitchCtr != null)
            {
                byte[] buffer = new byte[2];
                liquidLevelSwitchCtr.Read(0, 1, out buffer);
                if (this.liquidLevelSwitchChannle.Channle < 8)
                {
                    return((byte)((buffer[0] >> this.liquidLevelSwitchChannle.Channle) & 0x01));
                }
                else
                {
                    return((byte)((buffer[1] >> (this.liquidLevelSwitchChannle.Channle - 8)) & 0x01));
                }
            }

            return(1);
        }