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) {
6565 // print the state
6666 Serial.printf (" Received state change: %d\r\n " , state);
6767 // print the state name using the stored state names
68- if (multistate_custom_state_names && state < zbMultistateDeviceCustom.getMultistateOutputStateNamesLength ()) {
68+ if (state < zbMultistateDeviceCustom.getMultistateOutputStateNamesLength ()) {
6969 Serial.printf (" State name: %s\r\n " , multistate_custom_state_names[state]);
7070 }
7171 // print state index of possible options
@@ -161,8 +161,6 @@ void setup() {
161161}
162162
163163void loop () {
164- static uint32_t timeCounter = 0 ;
165-
166164 // Checking button for factory reset and reporting
167165 if (digitalRead (button) == LOW) { // Push button pressed
168166 // Key debounce handling
You can’t perform that action at this time.
0 commit comments