From 39c55a730a60f2aaceafb028fbd3568b7a9d8fae Mon Sep 17 00:00:00 2001 From: technyon Date: Sat, 13 Jul 2024 13:20:57 +0200 Subject: [PATCH] make members private --- src/NukiNetworkLock.cpp | 1 - src/NukiNetworkLock.h | 7 ++++--- src/NukiWrapper.cpp | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/NukiNetworkLock.cpp b/src/NukiNetworkLock.cpp index 7780b5d..2f8fc1d 100644 --- a/src/NukiNetworkLock.cpp +++ b/src/NukiNetworkLock.cpp @@ -591,7 +591,6 @@ void NukiNetworkLock::publishAuthorizationInfo(const std::list authIndex) { authIndex = log.index; - _authFound = true; _authId = log.authId; memset(_authName, 0, sizeof(_authName)); memcpy(_authName, authName, sizeof(authName)); diff --git a/src/NukiNetworkLock.h b/src/NukiNetworkLock.h index 9624025..caea560 100644 --- a/src/NukiNetworkLock.h +++ b/src/NukiNetworkLock.h @@ -83,9 +83,7 @@ public: uint32_t _authId = 0; unsigned long _offCommandExecutedTs = 0; NukiLock::LockAction _offCommand = (NukiLock::LockAction)0xff; - char _nukiName[33]; - char _authName[33]; - bool _authFound = false; + private: bool comparePrefixedPath(const char* fullPath, const char* subPath, bool offPath = false); @@ -118,6 +116,9 @@ private: uint8_t _queryCommands = 0; uint32_t _lastRollingLog = 0; + char _nukiName[33]; + char _authName[33]; + char* _buffer; size_t _bufferSize; diff --git a/src/NukiWrapper.cpp b/src/NukiWrapper.cpp index 1525028..167f35b 100644 --- a/src/NukiWrapper.cpp +++ b/src/NukiWrapper.cpp @@ -1081,8 +1081,6 @@ void NukiWrapper::onOfficialUpdateReceived(const char *topic, const char *value) if(_network->_offAuthId > 0 || _network->_offCodeId > 0) { - _network->_authFound = true; - if(_network->_offCodeId > 0) _network->_authId = _network->_offCodeId; else _network->_authId = _network->_offAuthId;