Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pause or smart record #60

Open
MaKe81 opened this issue Mar 9, 2020 · 1 comment
Open

pause or smart record #60

MaKe81 opened this issue Mar 9, 2020 · 1 comment

Comments

@MaKe81
Copy link

MaKe81 commented Mar 9, 2020

Hi,
How does the code separate between a Pause or just a Smart Record (sampling not every second)?

@adriangibbons
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants