mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 09:01:24 +02:00
WCID interface is always enabled.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -110,9 +110,6 @@ void init_otp_files() {
|
||||
random_gen(NULL, mkek, sizeof(mkek));
|
||||
otp_write_data(OTP_KEY_1, mkek, sizeof(mkek));
|
||||
}
|
||||
else {
|
||||
DEBUG_DATA(otp_buffer(OTP_KEY_1), 32);
|
||||
}
|
||||
otp_key_1 = otp_buffer(OTP_KEY_1);
|
||||
|
||||
otp_lock_page(page);
|
||||
@@ -167,7 +164,6 @@ void init_otp_files() {
|
||||
if (esp_efuse_key_block_unused(OTP_KEY_1)) {
|
||||
uint8_t mkek[32] = {0};
|
||||
random_gen(NULL, mkek, sizeof(mkek));
|
||||
DEBUG_DATA(mkek, 32);
|
||||
esp_err_t ret = esp_efuse_write_key(OTP_KEY_1, ESP_EFUSE_KEY_PURPOSE_USER, mkek, sizeof(mkek));
|
||||
if (ret != ESP_OK) {
|
||||
printf("Error writing OTP key 1 [%d]\n", ret);
|
||||
@@ -185,9 +181,6 @@ void init_otp_files() {
|
||||
if (ret != ESP_OK) {
|
||||
printf("Error reading OTP key 1 [%d]\n", ret);
|
||||
}
|
||||
else {
|
||||
DEBUG_DATA(_otp_key_1, 32);
|
||||
}
|
||||
otp_key_1 = _otp_key_1;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user