LMIC lib Lora OTA device for Everynet
Fork of LMiC-10secs by
Diff: lmic.cpp
- Revision:
- 5:74acff269a3d
- Parent:
- 4:663db54d46eb
- Child:
- 6:71f4de8e79e0
diff -r 663db54d46eb -r 74acff269a3d lmic.cpp --- a/lmic.cpp Mon Dec 14 10:46:06 2015 +0000 +++ b/lmic.cpp Mon Dec 21 14:19:28 2015 +0000 @@ -1231,7 +1231,7 @@ //if( port >= 0 && pend-poff > 0 ) //aes_cipher(port <= 0 ? LMIC.nwkKey : LMIC.artKey, LMIC.devaddr, seqno, /*dn*/1, d+poff, pend-poff); - if( port == 0 && pend-poff > 0 ) + if( port >= 0 && port != 1 && pend-poff > 0 ) { //debug_str("Payload decrypting...\r\n"); aes_cipher(port <= 0 ? LMIC.nwkKey : LMIC.artKey, LMIC.devaddr, seqno, /*dn*/1, d+poff, pend-poff);