Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix the ESP32-S2 security info response size #73

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ extern "C" {
fn spi_read_status_high(status: *const u32) -> u32;
}

#[cfg(not(feature = "esp32s2"))]
const SECURITY_INFO_BYTES: usize = 20;
#[cfg(feature = "esp32s2")]
const SECURITY_INFO_BYTES: usize = 12;

pub const FLASH_SECTOR_SIZE: u32 = 4096;
pub const FLASH_BLOCK_SIZE: u32 = 65536;
Expand Down