• It is not so regular, I added time in ms

      jsiConsolePrintf("%f Compensating HRM timediff %d\n",jshGetMillisecondsFromTime(time),t­imeDiff);
    

    and it looks like this, it is a lot from the start, then once or few times per second and then there are long periods where it does not happen at all and in these HRM is wrong too

     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v18.25 (c) 2021 G.Williams
    
    1686403741632.9345703125 Compensating HRM timediff 338
    1686403741769.25659179687 Compensating HRM timediff 136
    >1686403741905.57861328125 Compensating HRM timediff 136
    1686403742041.96166992187 Compensating HRM timediff 136
    1686403742178.37524414062 Compensating HRM timediff 136
    1686403742314.72778320312 Compensating HRM timediff 136
    1686403742450.86669921875 Compensating HRM timediff 136
    1686403742587.18872070312 Compensating HRM timediff 136
    1686403742723.57177734375 Compensating HRM timediff 136
    1686403742859.86328125 Compensating HRM timediff 136
    1686403742999.35913085937 Compensating HRM timediff 139
    1686403744631.28662109375 Compensating HRM timediff 68
    1686403746232.02514648437 Compensating HRM timediff 68
    1686403746470.5810546875 Compensating HRM timediff 67
    1686403748071.31958007812 Compensating HRM timediff 68
    1686403749672.21069335937 Compensating HRM timediff 68
    1686403749910.55297851562 Compensating HRM timediff 68
    1686403751511.53564453125 Compensating HRM timediff 68
    1686403751749.66430664062 Compensating HRM timediff 68
    1686403753350.12817382812 Compensating HRM timediff 68
    1686403754950.83618164062 Compensating HRM timediff 68
    1686403755189.208984375 Compensating HRM timediff 68
    1686403756789.85595703125 Compensating HRM timediff 68
    1686403758390.22827148437 Compensating HRM timediff 67
    1686403758628.72314453125 Compensating HRM timediff 68
    1686403760229.1259765625 Compensating HRM timediff 68
    1686403761829.7119140625 Compensating HRM timediff 68
    1686403762068.359375 Compensating HRM timediff 68
    1686403763668.48754882812 Compensating HRM timediff 68
    1686403765268.6767578125 Compensating HRM timediff 68
    1686403765506.98852539062 Compensating HRM timediff 67
    1686403766868.95751953125 Compensating HRM timediff 68
    1686403767107.23876953125 Compensating HRM timediff 68
    1686403768707.6416015625 Compensating HRM timediff 68
    1686403770307.58666992187 Compensating HRM timediff 67
    1686403771907.74536132812 Compensating HRM timediff 68
    1686403772146.02661132812 Compensating HRM timediff 68
    1686403773507.96508789062 Compensating HRM timediff 68
    1686403773746.12426757812 Compensating HRM timediff 68
    1686403775107.72705078125 Compensating HRM timediff 67
    1686403775346.58813476562 Compensating HRM timediff 68
    1686403776945.98388671875 Compensating HRM timediff 68
    1686403778545.8984375 Compensating HRM timediff 68
    1686403780145.90454101562 Compensating HRM timediff 68
    1686403781745.54443359375 Compensating HRM timediff 67
    1686403783345.3369140625 Compensating HRM timediff 68
    1686403784945.15991210937 Compensating HRM timediff 67
    1686403786545.07446289062 Compensating HRM timediff 68
    1686403788144.62280273437 Compensating HRM timediff 68
    1686403789744.384765625 Compensating HRM timediff 68
    1686403791344.54345703125 Compensating HRM timediff 68
    1686403799988.12866210937 Compensating HRM timediff 68
    
    {"t":"act","stp":0,"hrm":58}
    1686403801587.5244140625 Compensating HRM timediff 68
    1686403803187.01171875 Compensating HRM timediff 68
    1686403804786.2548828125 Compensating HRM timediff 68
    1686403832786.4990234375 Compensating HRM timediff 67
    1686403834385.22338867187 Compensating HRM timediff 68
    1686403852786.9873046875 Compensating HRM timediff 68
    1686403854385.65063476562 Compensating HRM timediff 68
    1686403871185.63842773437 Compensating HRM timediff 67
    1686403884787.07885742187 Compensating HRM timediff 68
    1686403886385.10131835937 Compensating HRM timediff 67
    1686403899984.64965820312 Compensating HRM timediff 67
    1686403911985.01586914062 Compensating HRM timediff 67
    1686403923984.95483398437 Compensating HRM timediff 68
    1686403934385.28442382812 Compensating HRM timediff 67
    1686403944785.24780273437 Compensating HRM timediff 67
    Button held down - interrupting JS execution...
    Execution Interrupted
    >1686403955218.65844726562 Compensating HRM timediff 101
    1686403956034.423828125 Compensating HRM timediff 67
    

    ```

About

Avatar for fanoush @fanoush started