mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-29 01:20:02 +02:00
minor
This commit is contained in:
parent
5143295711
commit
f8e2522a11
@ -369,11 +369,7 @@ int verifyChecksumFromFlash(char *mess, char *functionType,
|
|||||||
}
|
}
|
||||||
LOG(logINFO, ("\tRead %lu bytes to calculate checksum\n", totalBytesRead));
|
LOG(logINFO, ("\tRead %lu bytes to calculate checksum\n", totalBytesRead));
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
int ret = verifyChecksum(mess, functionType, clientChecksum, &c, "flash");
|
return verifyChecksum(mess, functionType, clientChecksum, &c, "flash");
|
||||||
if (ret == OK) {
|
|
||||||
LOG(logINFO, ("\tChecksum in Flash verified\n"));
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int verifyChecksum(char *mess, char *functionType, char *clientChecksum,
|
int verifyChecksum(char *mess, char *functionType, char *clientChecksum,
|
||||||
@ -408,6 +404,6 @@ int verifyChecksum(char *mess, char *functionType, char *clientChecksum,
|
|||||||
LOG(logERROR, (mess));
|
LOG(logERROR, (mess));
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
LOG(logINFO, ("\tChecksum verified\n"));
|
LOG(logINFO, ("\tChecksum of %s verified\n", msg));
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user