Skip to content

Commit f4a0ac1

Browse files
SuGliderCopilot
andauthored
fix(matter): removes redundant code
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent daad7dc commit f4a0ac1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libraries/Matter/src/MatterEndpoints/MatterTemperatureControlledCabinet.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,6 @@ bool MatterTemperatureControlledCabinet::beginInternal(uint8_t *supportedLevels,
293293
}
294294

295295
// Copy supported levels array into internal buffer
296-
if (levelCount > temperature_control::k_max_temp_level_count) {
297-
log_e("Level count %u exceeds maximum %u", levelCount, temperature_control::k_max_temp_level_count);
298-
return false;
299-
}
300296
memcpy(supportedLevelsArray, supportedLevels, levelCount * sizeof(uint8_t));
301297
supportedLevelsCount = levelCount;
302298
selectedTempLevel = selectedLevel;

0 commit comments

Comments
 (0)