From 5ccb9f10a0ef71a8b97934ca52123e763f455820 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Wed, 6 Apr 2016 22:47:37 +0300 Subject: [PATCH] minimize time to trinket is opened --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 722204c..ff77ec5 100644 --- a/main.c +++ b/main.c @@ -90,6 +90,8 @@ main_loop() { continue; } + trinketClose(); + if (collected <= tics) { prevDose[collected++] = curDose; } else { @@ -126,7 +128,6 @@ main_loop() { } } - trinketClose(); sleep(period); } } -- 2.46.1