Fix AllowedUntil

This commit is contained in:
iranl
2024-10-22 22:42:06 +02:00
parent 53c1192753
commit e25d642ad9
2 changed files with 4 additions and 4 deletions

View File

@@ -2785,7 +2785,7 @@ void NukiWrapper::onKeypadJsonCommandReceived(const char *value)
if(allowedUntil.length() > 0)
{
if(allowedUntil.length() > 0 == 19)
if(allowedUntil.length() == 19)
{
allowedUntilAr[0] = (uint16_t)allowedUntil.substring(0, 4).toInt();
allowedUntilAr[1] = (uint8_t)allowedUntil.substring(5, 7).toInt();
@@ -3594,7 +3594,7 @@ void NukiWrapper::onAuthCommandReceived(const char *value)
if(allowedUntil.length() > 0)
{
if(allowedUntil.length() > 0 == 19)
if(allowedUntil.length() == 19)
{
allowedUntilAr[0] = (uint16_t)allowedUntil.substring(0, 4).toInt();
allowedUntilAr[1] = (uint8_t)allowedUntil.substring(5, 7).toInt();