Update app.js

master
Ben Jabituya 2021-01-09 02:08:18 +00:00 committed by GitHub
parent 665ed1c099
commit f749f992bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ function circle() {
status = 7; status = 7;
timeout = setTimeout(function () { timeout = setTimeout(function () {
interval = restart_interval(); interval = restart_interval();
}, settings.inhale_pause * 1000); }, settings.exhale_pause * 1000);
} }
direction = 0; direction = 0;
} }
@ -78,7 +78,7 @@ function circle() {
status = 7; status = 7;
timeout = setTimeout(function () { timeout = setTimeout(function () {
interval = restart_interval(); interval = restart_interval();
}, settings.exhale_pause * 1000); }, settings.inhale_pause * 1000);
} }
direction = 1; direction = 1;
} }
@ -97,7 +97,7 @@ function restart_interval() {
var calc = 5 - settings.period; var calc = 5 - settings.period;
calc *= 15; calc *= 15;
calc += 120; calc += 120;
if(direction == 1 && settings.ex_in_ration == "5:6"){ if(direction == 1 && settings.ex_in_ratio == "5:6"){
calc -= calc*0.2; calc -= calc*0.2;
} }
interval = setInterval(circle, calc); interval = setInterval(circle, calc);