From 1146a04baafde44f6c9448fccf4bbd53e70f96e5 Mon Sep 17 00:00:00 2001 From: Juergen Stuber Date: Fri, 28 Dec 2018 13:09:14 +0100 Subject: [PATCH] Fix minimal loop time for mood light. --- src/bin/bimood/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/bimood/main.rs b/src/bin/bimood/main.rs index 6db511d..80ff27b 100644 --- a/src/bin/bimood/main.rs +++ b/src/bin/bimood/main.rs @@ -30,7 +30,7 @@ fn main() -> std::io::Result<()> { let loop_time = args[3] .parse::() .unwrap_or(DEFAULT_LOOP_TIME) - .min(MIN_LOOP_TIME); + .max(MIN_LOOP_TIME); eprintln!( "screen size {}x{}, loop time {:?}s", x_size, y_size, loop_time