From d5e96be214c3f50cccee57aa5bfaaf44ebe3bf58 Mon Sep 17 00:00:00 2001 From: lpbeliveau-silabs Date: Wed, 12 Jul 2023 14:13:24 -0400 Subject: [PATCH] f --- src/app/ReadHandler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/ReadHandler.h b/src/app/ReadHandler.h index 579c34880bfc4d..40b240180f7689 100644 --- a/src/app/ReadHandler.h +++ b/src/app/ReadHandler.h @@ -229,7 +229,8 @@ class ReadHandler : public Messaging::ExchangeDelegate { VerifyOrReturnError(IsIdle(), CHIP_ERROR_INCORRECT_STATE); VerifyOrReturnError(aMinInterval <= mMaxInterval, CHIP_ERROR_INVALID_ARGUMENT); - mMinIntervalFloorSeconds = aMinInterval; + // Ensures the new min interval is higher than the subscriber established one. + mMinIntervalFloorSeconds = std::max(mMinIntervalFloorSeconds, aMinInterval); return CHIP_NO_ERROR; }