Skip to content

Commit 1c2e88f

Browse files
fixup! Use Arduino_CloudUtils
1 parent e9edccd commit 1c2e88f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ota/interface/OTAInterfaceDefault.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ OTACloudProcessInterface::State OTADefaultCloudProcessInterface::fetch() {
120120
// this could distinguish between consistency of the downloaded bytes and filesize
121121

122122
// validate CRC
123-
arduino::crc32::finalize(context->calculatedCrc32);
123+
context->calculatedCrc32 = arduino::crc32::finalize(context->calculatedCrc32);
124124
if(context->header.header.crc32 == context->calculatedCrc32) {
125125
DEBUG_VERBOSE("Ota download completed successfully");
126126
res = FlashOTA;

0 commit comments

Comments
 (0)