Closed maxabba closed 1 month ago
@ncmreynolds will you be merging these updates and creating a new release?
I was just about to update a bunch of sensors I built with this library and saw this pull that appears to improve the original code.
@Humancell i'm using in my personal project and it is working very well. you can use mine until @ncmreynolds marge to main
https://github.com/maxabba/ld2410.git
for implement via platformio you can add to ini file like this installing git desktop
lib_deps =
https://github.com/maxabba/ld2410.git
Again, seems entirely reasonable to me.
Thank you! I'll be testing soon!
Optimization of LD2410 radar sensor reading and frame processing
This pull request addresses a critical issue in the LD2410 library where the
read()
function was always returningfalse
, even when new data was available. The changes significantly improve the reliability and efficiency of reading data from the radar sensor.Key modifications:
Improved
read()
function:true
if new data has been read or if a complete frame has been processed.Optimized
read_frame_()
function:Enhanced integration with the circular buffer:
Expected impact:
Tests performed:
read()
now returnstrue
when new data is available.Recommended next steps:
These changes should resolve the main reported issue and significantly improve the usability and reliability of the LD2410 library. I'm open to feedback and suggestions for further improvements.