Skip to content

Commit

Permalink
Fix the value of EMBER_BROADCAST_ENDPOINT. (#13868)
Browse files Browse the repository at this point in the history
0xFF is a valid endpoint id in Matter.

Also removes some unused "Invalid *" ids, which weren't the right
numerical values anyway.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Feb 27, 2024
1 parent 843c3a3 commit 1114248
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/app/util/af-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1555,12 +1555,6 @@ typedef struct
uint32_t timeStamp;
} EmberAfJoiningDevice;

#define EMBER_AF_INVALID_CLUSTER_ID 0xFFFF

#define EMBER_AF_INVALID_ENDPOINT 0xFF

#define EMBER_AF_INVALID_PAN_ID 0xFFFF

/**
* @brief Permit join times
*/
Expand Down
2 changes: 1 addition & 1 deletion src/app/util/types_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ typedef struct
/**
* @brief The broadcast endpoint, as defined in the ZigBee spec.
*/
#define EMBER_BROADCAST_ENDPOINT 0xFF
#define EMBER_BROADCAST_ENDPOINT (chip::kInvalidEndpointId)

/**
* @brief Useful to reference a single bit of a byte.
Expand Down

0 comments on commit 1114248

Please sign in to comment.