fix for flash

This commit is contained in:
2021-09-10 13:25:17 +02:00
parent 9d30d51da7
commit b8086dcd70
5 changed files with 62 additions and 25 deletions

View File

@@ -131,7 +131,8 @@ int copyToFlash(ssize_t fsize, char *clientChecksum, char *mess) {
return FAIL;
}
if (verifyChecksumFromFile(mess, clientChecksum, flashDriveName, fsize) == FAIL) {
if (verifyChecksumFromFlash(mess, clientChecksum, flashDriveName, fsize) ==
FAIL) {
return FAIL;
}
LOG(logINFO, ("Checksum in Flash verified\n"));