We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743de9f commit 78d3f49Copy full SHA for 78d3f49
libraries/Matter/examples/MatterOccupancyWithHoldTime/MatterOccupancyWithHoldTime.ino
@@ -171,7 +171,7 @@ void setup() {
171
const uint32_t detectionInterval = 120000; // Simulate detection every 2 minutes
172
173
// Get current HoldTime from the sensor (can be changed by Matter Controller)
174
- uint16_t holdTime_ms = OccupancySensor.getHoldTime() * 1000; // Convert seconds to milliseconds
+ uint32_t holdTime_ms = OccupancySensor.getHoldTime() * 1000; // Convert seconds to milliseconds
175
176
// Check HoldTime expiration FIRST (before processing new detections)
177
// This ensures HoldTime can expire even if a detection occurs in the same iteration
0 commit comments