mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +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!("Press ctrl-c to stop");
|
||||
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 {
|
||||
eprintln!("Invalid usage, pass -h for help");
|
||||
|
||||
Reference in New Issue
Block a user