Skip to content

Commit

Permalink
[K32W] Sync button push with cluster state
Browse files Browse the repository at this point in the history
If buttons are used for locking/unlocking the elock or for
turn off/down of the lighting then this change needs to be
propagated to the cluster state.

Signed-off-by: Doru Gucea <[email protected]>
  • Loading branch information
doru91 authored and bzbarsky-apple committed Aug 11, 2021
1 parent 603f2bd commit 57aa768
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/lighting-app/k32w/main/include/AppTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class AppTask
kFunction_Invalid
} Function;

Function_t mFunction;
bool mResetTimerActive;
bool mSyncClusterToButtonAction;
Function_t mFunction = kFunction_NoneSelected;
bool mResetTimerActive = false;
bool mSyncClusterToButtonAction = false;

static AppTask sAppTask;
};
Expand Down
6 changes: 3 additions & 3 deletions examples/lock-app/k32w/main/include/AppTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ class AppTask
kFunction_Invalid
} Function;

Function_t mFunction;
bool mResetTimerActive;
bool mSyncClusterToButtonAction;
Function_t mFunction = kFunction_NoneSelected;
bool mResetTimerActive = false;
bool mSyncClusterToButtonAction = false;

static AppTask sAppTask;
};
Expand Down

0 comments on commit 57aa768

Please sign in to comment.