Skip to content

Commit

Permalink
Fix issue dgrnbrg#4
Browse files Browse the repository at this point in the history
  • Loading branch information
myhomeiot committed May 4, 2024
1 parent 392b19d commit b7e15e7
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 b7e15e7

Please sign in to comment.