mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 11:40:50 -07:00
[esp32_hosted] Add SHA256 alignment for hardware DMA compatibility (#13050)
This commit is contained in:
@@ -90,7 +90,8 @@ void Esp32HostedUpdate::perform(bool force) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sha256::SHA256 hasher;
|
// ESP32-S3 hardware SHA acceleration requires 32-byte DMA alignment (IDF 5.5.x+)
|
||||||
|
alignas(32) sha256::SHA256 hasher;
|
||||||
hasher.init();
|
hasher.init();
|
||||||
hasher.add(this->firmware_data_, this->firmware_size_);
|
hasher.add(this->firmware_data_, this->firmware_size_);
|
||||||
hasher.calculate();
|
hasher.calculate();
|
||||||
|
|||||||
Reference in New Issue
Block a user