Skip to content

Commit 253066c

Browse files
committed
fix/zigbee): Add missing return in WindowCovering
1 parent 8cf38c5 commit 253066c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: libraries/Zigbee/src/ep/ZigbeeWindowCovering.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,13 @@ void ZigbeeWindowCovering::zbWindowCoveringMovementCmd(const esp_zb_zcl_window_c
222222
if (_current_lift_percentage != message->payload.percentage_lift_value) {
223223
_current_lift_percentage = message->payload.percentage_lift_value;
224224
goToLiftPercentage(_current_lift_percentage);
225+
return;
225226
}
226-
return;
227227
} else if (message->command == ESP_ZB_ZCL_CMD_WINDOW_COVERING_GO_TO_TILT_PERCENTAGE) {
228228
if (_current_tilt_percentage != message->payload.percentage_tilt_value) {
229229
_current_tilt_percentage = message->payload.percentage_tilt_value;
230230
goToTiltPercentage(_current_tilt_percentage);
231+
return;
231232
}
232233
} else {
233234
log_w("Received message ignored. Command: %d not supported for Window Covering", message->command);

0 commit comments

Comments
 (0)