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]
|
let loop_time = args[3]
|
||||||
.parse::<usize>()
|
.parse::<usize>()
|
||||||
.unwrap_or(DEFAULT_LOOP_TIME)
|
.unwrap_or(DEFAULT_LOOP_TIME)
|
||||||
.min(MIN_LOOP_TIME);
|
.max(MIN_LOOP_TIME);
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"screen size {}x{}, loop time {:?}s",
|
"screen size {}x{}, loop time {:?}s",
|
||||||
x_size, y_size, loop_time
|
x_size, y_size, loop_time
|
||||||
|
Loading…
Reference in New Issue
Block a user