Skip to content

Commit

Permalink
fix: typos on barrier control server cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
rochaferraz committed Feb 11, 2023
1 parent b11d672 commit ba1ef67
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void emberAfBarrierControlClusterServerTickCallback(EndpointId endpoint)
{
emAfPluginBarrierControlServerSetBarrierPosition(endpoint, state.currentPosition);
setMovingState(endpoint, EMBER_ZCL_BARRIER_CONTROL_MOVING_STATE_STOPPED);
deactivate(endpoint);
deactivateEndpointTimerCallback(endpoint);
}
else
{
Expand Down Expand Up @@ -276,7 +276,7 @@ void emberAfBarrierControlClusterServerTickCallback(EndpointId endpoint)
setMovingState(
endpoint,
(state.increasing ? EMBER_ZCL_BARRIER_CONTROL_MOVING_STATE_OPENING : EMBER_ZCL_BARRIER_CONTROL_MOVING_STATE_CLOSING));
scheduleTimerCallackMs(endpoint, state.delayMs);
scheduleTimerCallbackMs(endpoint, state.delayMs);
}
}

Expand Down Expand Up @@ -320,7 +320,7 @@ bool emberAfBarrierControlClusterBarrierControlGoToPercentCallback(
state.delayMs = calculateDelayMs(endpoint, state.targetPosition, &state.increasing);
emberAfBarrierControlClusterPrintln("Scheduling barrier move from %d to %d with %" PRIu32 "ms delay", state.currentPosition,
state.targetPosition, state.delayMs);
scheduleTimerCallackMs(endpoint, state.delayMs);
scheduleTimerCallbackMs(endpoint, state.delayMs);

if (state.currentPosition < state.targetPosition)
{
Expand All @@ -342,7 +342,7 @@ bool emberAfBarrierControlClusterBarrierControlStopCallback(app::CommandHandler
const Commands::BarrierControlStop::DecodableType & commandData)
{
EndpointId endpoint = commandPath.mEndpointId;
deactivate(endpoint);
deactivateEndpointTimerCallback(endpoint);
setMovingState(endpoint, EMBER_ZCL_BARRIER_CONTROL_MOVING_STATE_STOPPED);
sendDefaultResponse(EMBER_ZCL_STATUS_SUCCESS);
return true;
Expand Down

0 comments on commit ba1ef67

Please sign in to comment.