diff --git a/Aaru.Devices/Device/Constructor.cs b/Aaru.Devices/Device/Constructor.cs index ce7543355..4ab49abd6 100644 --- a/Aaru.Devices/Device/Constructor.cs +++ b/Aaru.Devices/Device/Constructor.cs @@ -918,6 +918,10 @@ namespace Aaru.Devices { var sr = new StreamReader(file); string ins = sr.ReadToEnd().Trim(); + + if(ins.StartsWith("0x", StringComparison.InvariantCultureIgnoreCase)) + ins = ins.Substring(2); + outBuf = new byte[ins.Length / 2]; int count = 0;