Skip to content

Commit fc4cae1

Browse files
committed
fix(example): Fix compilation errors
1 parent 1daf898 commit fc4cae1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libraries/Zigbee/examples/Zigbee_Multistate_Input_Output/Zigbee_Multistate_Input_Output.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

163163
void 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

0 commit comments

Comments
 (0)