Skip to content

Commit e686b71

Browse files
committed
Cleanup
1 parent ccded8a commit e686b71

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/SpdReaderWriterDll/Eeprom.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,7 @@ public static bool VerifyByte(Smbus controller, ushort offset, byte[] value) {
138138

139139
byte[] source = ReadByte(controller, offset, (byte)value.Length);
140140

141-
for (int i = 0; i < source.Length; i++) {
142-
if (source[i] != value[i]) {
143-
return false;
144-
}
145-
}
146-
147-
return true;
141+
return Data.CompareByteArray(source, value);
148142
}
149143

150144
/// <summary>

0 commit comments

Comments
 (0)