skip crc check if verify is unset
This commit is contained in:
2
vendor/esp-hal-ota/src/lib.rs
vendored
2
vendor/esp-hal-ota/src/lib.rs
vendored
@@ -220,7 +220,7 @@ where
|
||||
|
||||
let progress = self.progress.clone().ok_or(OtaError::OtaNotStarted)?;
|
||||
|
||||
if progress.target_crc != progress.last_crc {
|
||||
if verify && progress.target_crc != progress.last_crc {
|
||||
warn!("[OTA] Calculated crc: {}", progress.last_crc);
|
||||
warn!("[OTA] Target crc: {}", progress.target_crc);
|
||||
error!("[OTA] Crc check failed! Cant finish ota update...");
|
||||
|
||||
Reference in New Issue
Block a user