mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Re-set lat/lon repeatedly in location sim tool
This commit is contained in:
@@ -114,7 +114,11 @@ async fn main() {
|
|||||||
println!("Location set!");
|
println!("Location set!");
|
||||||
println!("Press ctrl-c to stop");
|
println!("Press ctrl-c to stop");
|
||||||
loop {
|
loop {
|
||||||
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
|
ls_client
|
||||||
|
.set(latitude, longitude)
|
||||||
|
.await
|
||||||
|
.expect("Failed to set location");
|
||||||
|
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
eprintln!("Invalid usage, pass -h for help");
|
eprintln!("Invalid usage, pass -h for help");
|
||||||
|
|||||||
Reference in New Issue
Block a user