mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-03-22 12:05:21 +00:00
This aligns the forward-error-correction code with the LoRa Basics Modem stack, which seems to be different from the TS004 MATLAB example code in that it only calls the matrix_line function for the redundancy frames and thus the n argument ranges from 1 until (and including) the number of redundancy frames. The TS004 MATLAB example calls the matrix_line function for every fragment, thus the n argument ranges from 1 until (and including) m + the number of redundancy frames. While n <= m, it returns early.