Esempio n. 1
0
        public string GetFirmwareVersion()
        {
            if (!deckHid.ReadFeatureData(hwInfo.FirmwareVersionFeatureId, out var featureData))
            {
                return(null);
            }

            return(Encoding.UTF8.GetString(featureData, hwInfo.FirmwareReportSkip, featureData.Length - hwInfo.FirmwareReportSkip).Trim('\0'));
        }
        public string GetFirmwareVersion()
        {
            var featureData = deckHid.ReadFeatureData(4);

            return(Encoding.UTF8.GetString(featureData, 5, featureData.Length - 5).Trim('\0'));
        }