move sleep down
This commit is contained in:
parent
9a9fe86911
commit
09ddf5919e
@ -96,7 +96,6 @@ fn main() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
thread::sleep(Duration::from_millis(polling_rate));
|
||||
|
||||
// Autoscroll: Autoscroll automatically toggles ths scrolling direction when the scrolling reaches a nonspace.
|
||||
if args.autoscroll {
|
||||
@ -116,13 +115,14 @@ fn main() {
|
||||
}
|
||||
}
|
||||
}
|
||||
write!(lock, "i: {}, com buf status: {}, upd: {}ms, scrll: {}, {}\r\n", {i +=1; i}, send_status, polling_rate, either!(scroll_left => "L"; "R"), input).unwrap();
|
||||
write!(lock, "i: {}, com buf status: {}, upd: {}ms, scrll: {}, {}\n", {i +=1; i}, send_status, polling_rate, either!(scroll_left => "L"; "R"), input).unwrap();
|
||||
// Scroll text
|
||||
if scroll_left {
|
||||
input = shift_left(input);
|
||||
} else {
|
||||
input = shift_right(input);
|
||||
}
|
||||
thread::sleep(Duration::from_millis(polling_rate));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user