Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed May 21, 2024
1 parent 6b9a8d2 commit be66dac
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions components/tcs_intercom/tcs_intercom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "esphome/components/api/custom_api_device.h"
#include "esphome/core/application.h"
#include <Arduino.h>
#include "efuse_reg.h"
#include "esp_efuse.h"
#include "esp_efuse_table.h"

Expand Down Expand Up @@ -61,11 +62,16 @@ namespace esphome

LOG_TEXT_SENSOR(TAG, "Bus Command", this->bus_command_);

uint32_t secure_boot_enabled = 0;
esp_efuse_read_field_blob(ESP_EFUSE_SECURE_BOOT_EN, &secure_boot_enabled, 1);



uint32_t field1_1 = 0;
esp_efuse_read_field_blob(ESP_EFUSE_USER_DATA, &field1_1, 8);



ESP_LOGW(TAG, "Secure Boot Enabled:");
ESP_LOGW(TAG, secure_boot_enabled ? "Si" : "No");
ESP_LOGW(TAG, "User Data:");
ESP_LOGW(TAG, field1_1);

/*har h[10];
for (int32_t block3Address = EFUSE_BLK3_RDATA0_REG, i = 0; block3Address <= EFUSE_BLK3_RDATA7_REG; block3Address += 4, ++i)
Expand Down

0 comments on commit be66dac

Please sign in to comment.