mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-05 22:18:16 +00:00
12 lines
324 B
Rust
12 lines
324 B
Rust
|
fn main() {
|
||
|
let trezors = trezor_client::find_devices(false);
|
||
|
println!("Found {} devices: ", trezors.len());
|
||
|
for t in trezors.into_iter() {
|
||
|
println!("- {}", t);
|
||
|
{
|
||
|
let mut client = t.connect().unwrap();
|
||
|
println!("{:?}", client.initialize(None).unwrap());
|
||
|
}
|
||
|
}
|
||
|
}
|