WCID interface is always enabled.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-11-06 17:02:38 +01:00
parent e85d77c084
commit 3dbf969e12
4 changed files with 8 additions and 53 deletions

View File

@@ -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

View File

@@ -87,7 +87,6 @@ int phy_init() {
memset(&phy_data, 0, sizeof(phy_data_t));
if (file_has_data(ef_phy)) {
const uint8_t *data = file_get_data(ef_phy);
DEBUG_DATA(data, file_get_size(ef_phy));
int ret = phy_unserialize_data(data, file_get_size(ef_phy), &phy_data);
if (ret != PICOKEY_OK) {
return ret;