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 5028559 commit 5a1a62a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"files.associations": {
"utility": "cpp"
"utility": "cpp",
"type_traits": "cpp",
"xtr1common": "cpp",
"xutility": "cpp"
}
}
18 changes: 15 additions & 3 deletions components/tcs_intercom/tcs_intercom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,27 @@ namespace esphome



char h[32];
/*char h[32];
uint32_t field1_1 = 0;
esp_efuse_read_field_blob(ESP_EFUSE_USER_DATA, &field1_1, 8);
sprintf(h, "%08X ", field1_1);


ESP_LOGW(TAG, "User Data:");
ESP_LOGW(TAG, h);
ESP_LOG(TAG, h);*/


uint8_t ver[3];

uint32_t value;
esp_efuse_read_block(ESP_EFUSE_BLK3, &value);
ver[0] = value >> 0;
ver[1] = value >> 8;
ver[2] = value >> 16;

ESP_LOGI(ver[0]);
ESP_LOGI(ver[1]);
ESP_LOGI(ver[2]);

/*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 5a1a62a

Please sign in to comment.