Fix is_empty_otp_buffer when a register is invalid.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2025-10-06 13:27:16 +02:00
parent a7e1cf028b
commit 3eff2442c6
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -68,7 +68,7 @@ uint8_t* otp_buffer_raw(uint16_t row) {
}
bool is_empty_otp_buffer(uint16_t row, uint16_t len) {
return is_empty_buffer(otp_buffer(row), len);
return is_empty_buffer(otp_buffer_raw(row), len * 2);
}
static bool is_otp_locked_page(uint8_t page) {