Decawave / dwm1001-examples

Simple C examples for Decawave DWM1001 hardware
https://www.decawave.com/products/dwm1001-module
164 stars 113 forks source link

Fix returned frame size check #26

Open dwalton65 opened 3 years ago

dwalton65 commented 3 years ago

The returned frame size was being compared with RX_BUFFER_LEN, when it should have been compared with RX_BUF_LEN.

RX_BUF_LEN = 24 RX_BUFFER_LEN = 1024

This was the cause of occasional crashes due to memory being overwritten.