make members private
This commit is contained in:
@@ -591,7 +591,6 @@ void NukiNetworkLock::publishAuthorizationInfo(const std::list<NukiLock::LogEntr
|
||||
if(log.index > authIndex)
|
||||
{
|
||||
authIndex = log.index;
|
||||
_authFound = true;
|
||||
_authId = log.authId;
|
||||
memset(_authName, 0, sizeof(_authName));
|
||||
memcpy(_authName, authName, sizeof(authName));
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user