Fix minimal loop time for mood light.
This commit is contained in:
parent
fca87bce09
commit
1146a04baa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user