Esempio n. 1
0
        /// <summary>
        /// Read firmware information
        /// after the information is returned, get the detail from FirmwareInfo property
        /// </summary>
        /// <returns></returns>
        public bool ReadFWInfo()
        {
            buf_report_factinfo.Clear();

            CommandStruct cmd = new CommandStruct()
            {
                Command = EnumCommand.FWINFO
            };

            _hid_device.Write(cmd.ToBytes());

            if (WaitReportFactinfo())
            {
                return(this.FirmwareInfo.Parse(buf_report_factinfo.ToArray()));
            }
            else
            {
                return(false);
            }
        }