mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix reading OCR from newer versions of Linux sysfs.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user