Skip to content

Commit 5ba4c21

Browse files
authored
fix(zigbee): Add default destructor and fix initialization of tm struct (#10943)
1 parent 6fcaf69 commit 5ba4c21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/Zigbee/src/ZigbeeEP.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class ZigbeeEP {
9595
void reportBatteryPercentage();
9696

9797
// Set time
98-
void addTimeCluster(tm time = {0}, int32_t gmt_offset = 0); // gmt offset in seconds
98+
void addTimeCluster(tm time = {}, int32_t gmt_offset = 0); // gmt offset in seconds
9999
void setTime(tm time);
100100
void setTimezone(int32_t gmt_offset);
101101

libraries/Zigbee/src/ep/ZigbeeWindowCovering.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ typedef struct zigbee_window_covering_cfg_s {
6767
class ZigbeeWindowCovering : public ZigbeeEP {
6868
public:
6969
ZigbeeWindowCovering(uint8_t endpoint);
70-
~ZigbeeWindowCovering();
70+
~ZigbeeWindowCovering() {}
7171

7272
// Set the callback functions for the window covering commands
7373
void onOpen(void (*callback)()) {

0 commit comments

Comments
 (0)