Skip to content

Commit

Permalink
fix(zigbee): Add default destructor and fix initialization of tm stru…
Browse files Browse the repository at this point in the history
…ct (#10943)
  • Loading branch information
P-R-O-C-H-Y authored Feb 6, 2025
1 parent 6fcaf69 commit 5ba4c21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/Zigbee/src/ZigbeeEP.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class ZigbeeEP {
void reportBatteryPercentage();

// Set time
void addTimeCluster(tm time = {0}, int32_t gmt_offset = 0); // gmt offset in seconds
void addTimeCluster(tm time = {}, int32_t gmt_offset = 0); // gmt offset in seconds
void setTime(tm time);
void setTimezone(int32_t gmt_offset);

Expand Down
2 changes: 1 addition & 1 deletion libraries/Zigbee/src/ep/ZigbeeWindowCovering.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ typedef struct zigbee_window_covering_cfg_s {
class ZigbeeWindowCovering : public ZigbeeEP {
public:
ZigbeeWindowCovering(uint8_t endpoint);
~ZigbeeWindowCovering();
~ZigbeeWindowCovering() {}

// Set the callback functions for the window covering commands
void onOpen(void (*callback)()) {
Expand Down

0 comments on commit 5ba4c21

Please sign in to comment.