Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MinimouseSrc/LoraWanProcess.cpp
- Revision:
- 1:eda561b01daf
- Parent:
- 0:2325d1d28df3
diff -r 2325d1d28df3 -r eda561b01daf MinimouseSrc/LoraWanProcess.cpp --- a/MinimouseSrc/LoraWanProcess.cpp Fri Dec 15 13:15:04 2017 +0000 +++ b/MinimouseSrc/LoraWanProcess.cpp Mon Dec 18 16:31:11 2017 +0000 @@ -18,7 +18,7 @@ #include "LoraWanProcess.h" #include "ApiRtc.h" #include "utilities.h" -Serial pcf( PA_9, PA_10 ); +Serial pcf( SERIAL_TX, SERIAL_RX ); LoraWanObjet::LoraWanObjet( PinName interrupt ):packet( interrupt ){ StateLoraWanProcess=LWPSTATE_IDLE; @@ -136,7 +136,7 @@ if ( ValidRxPacket == JOINACCEPTPACKET){ packet.UpdateJoinProcedure( ); } - if ( ValidRxPacket == NWKRXPACKET){ + if ( ( ValidRxPacket == NWKRXPACKET) || ( ValidRxPacket == USERRX_FOPTSPACKET) ) { packet.ParseManagementPacket( ); } packet.UpdateMacLayer();