From b7e15e7f60b9052a0c0f38481c58e61dc39b82d9 Mon Sep 17 00:00:00 2001 From: myhomeiot Date: Sat, 4 May 2024 18:33:56 +0300 Subject: [PATCH] Fix issue https://github.com/dgrnbrg/appdaemon-configs/issues/4 --- custom_components/irk_enrollment/irk_enrollment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/irk_enrollment/irk_enrollment.cpp b/custom_components/irk_enrollment/irk_enrollment.cpp index 4727315..c48bff2 100644 --- a/custom_components/irk_enrollment/irk_enrollment.cpp +++ b/custom_components/irk_enrollment/irk_enrollment.cpp @@ -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); }