php-fit-file-analysis icon indicating copy to clipboard operation
php-fit-file-analysis copied to clipboard

pause or smart record

Open MaKe81 opened this issue 4 years ago • 1 comments

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

MaKe81 avatar Mar 09 '20 09:03 MaKe81

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.

adriangibbons avatar Mar 25 '20 00:03 adriangibbons