pause or smart record
MaKe81 opened this issue · 1 comments
MaKe81 commented
Hi,
How does the code separate between a Pause or just a Smart Record (sampling not every second)?
adriangibbons commented
Hi, if you look at the isPaused()
method on https://github.com/adriangibbons/php-fit-file-analysis/blob/master/src/phpFITFileAnalysis.php#L2440
It looks for start
and stop_all
events, which I found to be ones of interest when developing this functionality. From the Profile.xlsx file from the FIT SDK:
event_type | enum | ||
---|---|---|---|
start | 0 | ||
stop | 1 | ||
consecutive_depreciated | 2 | ||
marker | 3 | ||
stop_all | 4 | ||
begin_depreciated | 5 | ||
end_depreciated | 6 | ||
end_all_depreciated | 7 | ||
stop_disable | 8 | ||
stop_disable_all | 9 |
I don't think that smart recording triggers an event so shouldn't impact on pausing.
Let me know if you find to the contrary.