Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As explained in the added code comments, sometimes Polar devices generate a separate rrsamples data file which is just a flat list of R-R intervals. However, other times, Polar devices include HRV data interspersed with other exercise sample data. With this change, the TrainingSession::toHRM function will use the separate rrsamples file when available (existing behaviour), and fallback to using the HRV data dispersed throughout the execerise data, if present. Note, other output formats, such as GPX and TCX do not include heartrate variability (HRV) data, so those are unaffected. Finally, this change also fixes a minor issue that prevented unit tests recording temporary debug data for `*.rr.hrm` files in some cases.
- Loading branch information