Skip to content

Commit

Permalink
Fix source route handler command for EZSP v9 (#620)
Browse files Browse the repository at this point in the history
* Fix command schema for EZSP v9, command 0x00C4

* Fix v9 types
  • Loading branch information
puddly authored Apr 29, 2024
1 parent fbf754f commit e157c6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bellows/ezsp/v9/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,11 @@ class GetTokenDataRsp(Struct):
(),
(t.EmberNodeId, t.EUI64, t.uint8_t, t.int8s, t.LVList[t.EmberNodeId]),
),
"changeSourceRouteHandler": (0x00C4, (), (t.EmberNodeId, t.EmberNodeId, t.Bool)),
"incomingNetworkStatusHandler": (
0x00C4,
(),
tuple({"errorCode": t.EmberStackError, "target": t.EmberNodeId}.values()),
),
"setSourceRoute": (
0x00AE,
(t.EmberNodeId, t.LVList[t.EmberNodeId]),
Expand Down
1 change: 1 addition & 0 deletions bellows/ezsp/v9/types/named.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
EmberSignature283k1Data,
EmberSignatureData,
EmberSmacData,
EmberStackError,
EmberStatus,
EmberZdoConfigurationFlags,
EmberZllKeyIndex,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ezsp_v9.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def test_command_frames(ezsp_f):
"calculateSmacsHandler": 0x00A0,
"calculateSmacsHandler283k1": 0x00EB,
"callback": 0x0006,
"changeSourceRouteHandler": 0x00C4,
"childJoinHandler": 0x0023,
"clearBindingTable": 0x002A,
"clearKeyTable": 0x00B1,
Expand Down Expand Up @@ -172,6 +171,7 @@ def test_command_frames(ezsp_f):
"incomingBootloadMessageHandler": 0x0092,
"incomingManyToOneRouteRequestHandler": 0x007D,
"incomingMessageHandler": 0x0045,
"incomingNetworkStatusHandler": 0x00C4,
"incomingRouteErrorHandler": 0x0080,
"incomingRouteRecordHandler": 0x0059,
"incomingSenderEui64Handler": 0x0062,
Expand Down

0 comments on commit e157c6d

Please sign in to comment.