From f749f992bbbe9f36f4e08f8d23df89588b0589b6 Mon Sep 17 00:00:00 2001 From: Ben Jabituya <74158243+jabituyaben@users.noreply.github.com> Date: Sat, 9 Jan 2021 02:08:18 +0000 Subject: [PATCH] Update app.js --- apps/breath/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/breath/app.js b/apps/breath/app.js index 1c34c0c8e..745ea6c3c 100644 --- a/apps/breath/app.js +++ b/apps/breath/app.js @@ -64,7 +64,7 @@ function circle() { status = 7; timeout = setTimeout(function () { interval = restart_interval(); - }, settings.inhale_pause * 1000); + }, settings.exhale_pause * 1000); } direction = 0; } @@ -78,7 +78,7 @@ function circle() { status = 7; timeout = setTimeout(function () { interval = restart_interval(); - }, settings.exhale_pause * 1000); + }, settings.inhale_pause * 1000); } direction = 1; } @@ -97,7 +97,7 @@ function restart_interval() { var calc = 5 - settings.period; calc *= 15; calc += 120; - if(direction == 1 && settings.ex_in_ration == "5:6"){ + if(direction == 1 && settings.ex_in_ratio == "5:6"){ calc -= calc*0.2; } interval = setInterval(circle, calc);