Skip to content

Commit

Permalink
5.3.0 - Fix crashing issues for watches without respiration rate (ex:…
Browse files Browse the repository at this point in the history
… Fenix 5X Plus)
  • Loading branch information
dliedke committed Feb 24, 2023
1 parent 0e3188c commit dfb9d2d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ConnectIQStore/MeditateStoreDescription-en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Set custom activity name using watch connected to PC via USB with Garmin Express

Use "Yoga" type activity to correctly capture Respiration rate metrics due to bug in Breath work activity in some devices.

Avoid moving your wrist during the session in order to capture HRV and Respiration rate metrics.
Avoid moving your wrist during the session in order to capture HRV and Respiration rate metrics. If HRV is not being detected, please reboot your watch pressing light button for 15s, turn it on and retry the application.

Note: Connect IQ API used for application development only returns the 5min average for the stress metric. That's why the numbers don't match exactly with Garmin Connect, because in GC it shows the real time stress metric when activity started and stopped.

Expand Down
2 changes: 1 addition & 1 deletion ConnectIQStore/MeditateStoreDescription-pt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Defina o nome da atividade personalizada usando o relógio conectado ao PC via U

Use a atividade do tipo "Yoga" para capturar corretamente as métricas da taxa de respiração devido a um bug na atividade de respiração em alguns dispositivos.

Evite mover o pulso durante a sessão para capturar as métricas de VFC e frequência respiratória.
Evite mover o pulso durante a sessão para capturar as métricas de VFC e frequência respiratória. Se o VFC não estiver sendo detectado, reinicie o relógio pressionando o botão de iluminação por 15 segundos, ligue-o e tente novamente o aplicativo.

Observação: a API Connect IQ usada para desenvolvimento de aplicativos retorna apenas a média de 5 minutos para a métrica de estresse. É por isso que os números não correspondem exatamente ao Garmin Connect, porque no GC ele mostra a métrica de estresse em tempo real quando a atividade é iniciada e interrompida.

Expand Down
9 changes: 6 additions & 3 deletions HrvAlgorithms/sources/activity/RrActivity.mc
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ module HrvAlgorithms {

function getSummary() {

rrSummary.rrHistory = me.mRRHistory;
return rrSummary;
if (rrSummary==null) {
return null;
} else {
rrSummary.rrHistory = me.mRRHistory;
return rrSummary;
}
}


//DEBUG - start - test the respiration rate chart instantaneously for X minutes
// also change min/max HR fixed in class RespirationRateGraphView and
Expand Down
2 changes: 1 addition & 1 deletion Meditate/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- This is a generated file. It is highly recommended that you DO NOT edit this file. -->
<iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="3">
<iq:application entry="MeditateApp" id="9abb375dcf7c4ace87ff66f4f774f6c8" launcherIcon="@Drawables.launcherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="5.2.0">
<iq:application entry="MeditateApp" id="9abb375dcf7c4ace87ff66f4f774f6c8" launcherIcon="@Drawables.launcherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="5.3.0">
<iq:products>
<iq:product id="approachs62"/>
<iq:product id="d2air"/>
Expand Down
2 changes: 1 addition & 1 deletion Meditate/resources-por/strings/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
<string id="HRVready">VFC Pronto</string>
<string id="HRVoff">VFC Deslig.</string>

<string id="about_AppVersion">Meditate 5.2.0</string>
<string id="about_AppVersion">Meditate 5.3.0</string>
<string id="about_vtrifonov"> vtrifonov</string>
<string id="about_dliedke"> dliedke</string>

Expand Down
2 changes: 1 addition & 1 deletion Meditate/resources/strings/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<string id="HRVready">HRV Ready</string>
<string id="HRVoff">HRV off</string>

<string id="about_AppVersion">Meditate 5.2.0</string>
<string id="about_AppVersion">Meditate 5.3.0</string>
<string id="about_vtrifonov"> vtrifonov</string>
<string id="about_dliedke"> dliedke</string>

Expand Down

0 comments on commit dfb9d2d

Please sign in to comment.