Fix minimal loop time for mood light.

This commit is contained in:
Juergen Stuber 2018-12-28 13:09:14 +01:00
parent fca87bce09
commit 1146a04baa
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ fn main() -> std::io::Result<()> {
let loop_time = args[3]
.parse::<usize>()
.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