From b84cbbdd9bcc2ef662f2069be1cbe8874e209ad4 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 14 Sep 2020 13:41:02 +0300 Subject: [PATCH] Fix brightness --- brightness/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/brightness/src/main.rs b/brightness/src/main.rs index 7e7cc99..5ecb983 100644 --- a/brightness/src/main.rs +++ b/brightness/src/main.rs @@ -33,6 +33,8 @@ fn main() { osd.update(); } + last_b = b; + std::thread::sleep(std::time::Duration::from_secs(refresh_interval)) } }