Skip to content

Commit

Permalink
Merge pull request #7 from myhomeiot/main
Browse files Browse the repository at this point in the history
Fix issue #4
  • Loading branch information
dgrnbrg authored May 5, 2024
2 parents c798aab + b7e15e7 commit 0ec5897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/irk_enrollment/irk_enrollment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ void IrkEnrollmentComponent::loop() {
(bond_devs[i].bd_addr[0] << 24) + (bond_devs[i].bd_addr[1] << 16) + (bond_devs[i].bd_addr[2] << 8) +
bond_devs[i].bd_addr[3],
(bond_devs[i].bd_addr[4] << 8) + bond_devs[i].bd_addr[5]);
auto irkStr = hexStr(bond_devs[i].bond_key.pid_key.irk, 16);
ESP_LOGI(TAG, " irk: %s", irkStr);
auto irkStr = hexStr((unsigned char *) &bond_devs[i].bond_key.pid_key.irk, 16);
ESP_LOGI(TAG, " irk: %s", irkStr.c_str());
if (this->latest_irk_ != nullptr && this->latest_irk_->get_state() != irkStr) {
this->latest_irk_->publish_state(irkStr);
}
Expand Down

0 comments on commit 0ec5897

Please sign in to comment.