Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Apr 3, 2024
1 parent c6e2b74 commit 196ff98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/nuki_lock/nuki_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,11 @@ namespace esphome
ESP_LOGI(TAG, "Waiting for Nuki to enter pairing mode...");

// Turn on for ... seconds
this->pairing_mode_timer_ = millis() + (this->pairing_timeout_ * 1000);
ESP_LOGI(TAG, "Pairing Timeout set to: %d", this->pairing_mode_timer_);
uint32_t now_millis = millis();
this->pairing_mode_timer_ = now_millis + (this->pairing_timeout_ * 1000);
ESP_LOGI(TAG, "Millis now: %d", now_millis);
ESP_LOGI(TAG, "Pairing Timeout: %d", this->pairing_timeout_);
ESP_LOGI(TAG, "Pairing Mode Timer ends: %d", this->pairing_mode_timer_);
}
else
{
Expand Down

0 comments on commit 196ff98

Please sign in to comment.