Skip to content

Commit 96c18c4

Browse files
committed
Fix compilation errors in examples
1 parent b000bea commit 96c18c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libraries/Zigbee/examples/Zigbee_On_Off_Switch/Zigbee_On_Off_Switch.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,6 @@ void loop() {
192192
static uint32_t last_print = 0;
193193
if (millis() - last_print > 10000) {
194194
last_print = millis();
195-
zbSwitch.printBoundLights();
195+
zbSwitch.printBoundDevices();
196196
}
197197
}

libraries/Zigbee/examples/Zigbee_Scan_Networks/Zigbee_Scan_Networks.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void printScannedNetworks(uint16_t networksFound) {
5252
Serial.print(" | ");
5353
Serial.printf("0x%04hx", scan_result[i].short_pan_id);
5454
Serial.print(" | ");
55-
Serial.printf("%2ld", scan_result[i].logic_channel);
55+
Serial.printf("%2d", scan_result[i].logic_channel);
5656
Serial.print(" | ");
5757
Serial.printf("%-14.14s", scan_result[i].permit_joining ? "Yes" : "No");
5858
Serial.print(" | ");

libraries/Zigbee/examples/Zigbee_Thermostat/Zigbee_Thermostat.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@ void loop() {
125125
if (millis() - last_print > 10000) {
126126
last_print = millis();
127127
int temp_percent = (int)((zbThermostat.temperature - zbThermostat.min_temperature) / (zbThermostat.max_temperature - zbThermostat.min_temperature) * 100);
128-
Serial.printf("Temperature: %.2f°C (%d '%')\n", zbThermostat.temperature, temp_percent);
128+
Serial.printf("Temperature: %.2f°C (%d %%)\n", zbThermostat.temperature, temp_percent);
129129
}
130130
}

0 commit comments

Comments
 (0)