mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
wip
This commit is contained in:
parent
0feffa0235
commit
083aeb200d
@ -321,6 +321,15 @@ int verifyChecksumFromFlash(char *mess, char *clientChecksum, char *fname,
|
||||
}
|
||||
bytes = fread(buf + 1, 1, readUnitSize, fp);
|
||||
totalBytesRead += bytes;
|
||||
if (totalBytesRead <= 2 * bytes) {
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
printf("%d:[0x%02x]\n", i, (uint8_t)buf[i]);
|
||||
}
|
||||
for (int i = 126; i < 129; ++i) {
|
||||
printf("%d:[0x%02x]\n", i, (uint8_t)buf[i]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
// last null character (if size does not match)
|
||||
/*if (fsize == totalBytesRead + 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user