untangle if-statement

This commit is contained in:
Rebecca Wallander
2026-04-03 16:34:53 +02:00
parent 77ab25def4
commit 7b7d3b1151

View File

@@ -138,8 +138,7 @@ public partial class Device
if (!Sector.CheckIed(buffer, transferLength)) return true; if (!Sector.CheckIed(buffer, transferLength)) return true;
if(descramble) if(descramble && !Sector.CheckEdc(buffer, transferLength)) return true;
if (!Sector.CheckEdc(buffer, transferLength)) return true;
Error = LastError != 0; Error = LastError != 0;