File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
libraries/Zigbee/examples/Zigbee_Multistate_Input_Output Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ void onStateChangeCustom(uint16_t state) {
65
65
// print the state
66
66
Serial.printf (" Received state change: %d\r\n " , state);
67
67
// print the state name using the stored state names
68
- if (multistate_custom_state_names && state < zbMultistateDeviceCustom.getMultistateOutputStateNamesLength ()) {
68
+ if (state < zbMultistateDeviceCustom.getMultistateOutputStateNamesLength ()) {
69
69
Serial.printf (" State name: %s\r\n " , multistate_custom_state_names[state]);
70
70
}
71
71
// print state index of possible options
@@ -161,8 +161,6 @@ void setup() {
161
161
}
162
162
163
163
void loop () {
164
- static uint32_t timeCounter = 0 ;
165
-
166
164
// Checking button for factory reset and reporting
167
165
if (digitalRead (button) == LOW) { // Push button pressed
168
166
// Key debounce handling
You can’t perform that action at this time.
0 commit comments