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 bdcf8bb commit c9d7d34
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/tcs_intercom/tcs_intercom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ namespace esphome
LOG_TEXT_SENSOR(TAG, "Bus Command", this->bus_command_);


char h[10];
for(int32_t block3Address=0; block3Address<=4; block3Address+=1)

for (int32_t block3Address = EFUSE_BLK3_RDATA0_REG, i = 0; block3Address <= EFUSE_BLK3_RDATA7_REG; block3Address += 4, ++i)
{
uint32_t block = esp_efuse_read_reg(3, block3Address);
uint32_t block = REG_GET_FIELD(block3Address, EFUSE_BLK3_DOUT0);
sprintf(h, "%08X ", block);

ESP_LOGCONFIG(TAG, h);
}
}
Expand Down

0 comments on commit c9d7d34

Please sign in to comment.