anthonykirby / lora-packet

LoRa radio packet decoder
MIT License
258 stars 83 forks source link

If FCnt does not exist in the packet, getFCnt() throws an exception #11

Closed rerickson1 closed 6 years ago

rerickson1 commented 7 years ago

https://github.com/anthonykirby/lora-packet/blob/054cc726a21cc759820c938faca20b02f0c884b2/lib/packet.js#L357

A check to see if FCnt exists should be added to the function. If FCnt does not exist, just return null.