Fix is_empty_otp_buffer when a register is invalid.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
a7e1cf028b
commit
3eff2442c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue