Ticket Created
over 3 years ago

VEGAS-6334

Transferred

error bug getHeartRateZones

Today I've probably found another error on some type of devices (for sure on fenix 5X 006-B2604-00  FV21.00 ciq 3.1.8 and probably on Venu Sq) .

this code:

          using Toybox.UserProfile as USP;

          var U = USP.getHeartRateZones(USP.HR_ZONE_SPORT_GENERIC);

set U to:

- null when no activity started (should be array)

- HR zones that are not equal with HR zones in Garmin Connect. Array is: [93, 111, 130, 148, 167, 185]  and  the exactly same values I've got on simulator (where I can't define it).

Other values I've checked are ok: U.birthYear, U.wakeTime, U.sleepTime.

Parents
  • I'm not sure with

    U.averageRestingHeartRate;

    maybe it's null because it's from 3.2.0 an I check it

       gRestingHeartRate = U.restingHeartRate;
        if(U has :averageRestingHeartRate)
        {
            gAverageRestingHeartRate = U.averageRestingHeartRate;
        }else
        {
            gAverageRestingHeartRate = gRestingHeartRate;
        }

    so for sure

    U.restingHeartRate;

    return 0

Comment
  • I'm not sure with

    U.averageRestingHeartRate;

    maybe it's null because it's from 3.2.0 an I check it

       gRestingHeartRate = U.restingHeartRate;
        if(U has :averageRestingHeartRate)
        {
            gAverageRestingHeartRate = U.averageRestingHeartRate;
        }else
        {
            gAverageRestingHeartRate = gRestingHeartRate;
        }

    so for sure

    U.restingHeartRate;

    return 0

Children
No Data