From: Teodor Sigaev Date: Wed, 6 Apr 2016 19:47:37 +0000 (+0300) Subject: minimize time to trinket is opened X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=5ccb9f10a0ef71a8b97934ca52123e763f455820;p=trinked.git minimize time to trinket is opened --- 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); } }