Skip to content

Commit

Permalink
Merge pull request #303 from iranl/disable-publishauth-no-pin
Browse files Browse the repository at this point in the history
Disable UpdateAuthData when no PIN is set
  • Loading branch information
technyon committed Feb 19, 2024
2 parents 9f042c8 + 3688d3d commit 9a5df44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NukiOpenerWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ void NukiOpenerWrapper::updateConfig()

void NukiOpenerWrapper::updateAuthData()
{
if(_nukiOpener.getSecurityPincode() == 0) return;

Nuki::CmdResult result = _nukiOpener.retrieveLogEntries(0, 0, 0, true);
if(result != Nuki::CmdResult::Success)
{
Expand Down
2 changes: 2 additions & 0 deletions NukiWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ void NukiWrapper::updateConfig()

void NukiWrapper::updateAuthData()
{
if(_nukiLock.getSecurityPincode() == 0) return;

Nuki::CmdResult result = _nukiLock.retrieveLogEntries(0, 0, 0, true);
if(result != Nuki::CmdResult::Success)
{
Expand Down

0 comments on commit 9a5df44

Please sign in to comment.