Skip to content

Commit

Permalink
Forward message to endpoint 10 and 11 to 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Mar 9, 2019
1 parent eb2da3f commit 265ca6d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion coordinator/firmware.patch
Expand Up @@ -41,7 +41,7 @@ index 0000000..004588d
+#define CODE_REVISION_NUMBER 20190217
\ No newline at end of file
diff --git a/Components/stack/af/AF.c b/Components/stack/af/AF.c
index c6183b6..cd5b455 100644
index c6183b6..2b885b6 100644
--- a/Components/stack/af/AF.c
+++ b/Components/stack/af/AF.c
@@ -372,10 +372,18 @@ void afIncomingData( aps_FrameFormat_t *aff, zAddrType_t *SrcAddress, uint16 Src
Expand All @@ -67,6 +67,19 @@ index c6183b6..cd5b455 100644
if ( epDesc == NULL )
return; // Endpoint descriptor not found

@@ -392,6 +400,12 @@ void afIncomingData( aps_FrameFormat_t *aff, zAddrType_t *SrcAddress, uint16 Src
epDesc = pList->epDesc;
}
}
+ else if ( aff->DstEndPoint == 10 || aff->DstEndPoint == 11 ) {
+ if ( (epDesc = afFindEndPointDesc( 1 )) )
+ {
+ pList = afFindEndPointDescList( epDesc->endPoint );
+ }
+ }
else if ( (epDesc = afFindEndPointDesc( aff->DstEndPoint )) )
{
pList = afFindEndPointDescList( epDesc->endPoint );
diff --git a/Components/stack/nwk/nwk_globals.c b/Components/stack/nwk/nwk_globals.c
index 20df18e..15c9cbb 100644
--- a/Components/stack/nwk/nwk_globals.c
Expand Down

0 comments on commit 265ca6d

Please sign in to comment.