mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 00:28:10 +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());
|
||
|
}
|
||
|
}
|
||
|
}
|