mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-01 02:51:22 +02:00
Fix is_empty_otp_buffer when a register is invalid.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -68,7 +68,7 @@ uint8_t* otp_buffer_raw(uint16_t row) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool is_empty_otp_buffer(uint16_t row, uint16_t len) {
|
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) {
|
static bool is_otp_locked_page(uint8_t page) {
|
||||||
|
|||||||
Reference in New Issue
Block a user