Skip to content

Commit 3bec0a6

Browse files
author
Jamie C. Driver
committed
attestation: fix to correctly allow reinitialisation in dev mode
1 parent 3c3f24a commit 3bec0a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/attestation/attestation.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,12 @@ bool attestation_can_be_initialised(void)
440440
}
441441
#endif
442442

443+
#ifndef ALLOW_REINITIALISE
443444
// Check efuse is both readable and writable
444445
if (esp_efuse_get_key_dis_read(JADE_ATTEST_EFUSE) || esp_efuse_get_key_dis_write(JADE_ATTEST_EFUSE)) {
445446
return false;
446447
}
448+
#endif
447449

448450
// Check efuses can still be made read-only
449451
if (esp_efuse_read_field_bit(ESP_EFUSE_WR_DIS_RD_DIS)) {

0 commit comments

Comments
 (0)