mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-09 23:11:10 +00:00
fix(rust/trezor-client) wait indefinitely when reading and shorter when writing data
This commit is contained in:
parent
1112f1abc0
commit
1d54c2b8c5
@ -19,8 +19,8 @@ use constants::{DEFAULT_DEBUG_PORT, DEFAULT_HOST, DEFAULT_PORT, LOCAL_LISTENER};
|
||||
/// The chunk size for the serial protocol.
|
||||
const CHUNK_SIZE: usize = 64;
|
||||
|
||||
const READ_TIMEOUT_MS: u64 = 100000;
|
||||
const WRITE_TIMEOUT_MS: u64 = 100000;
|
||||
const READ_TIMEOUT_MS: u64 = 0;
|
||||
const WRITE_TIMEOUT_MS: u64 = 1000;
|
||||
|
||||
/// An available transport for connecting with a device.
|
||||
#[derive(Debug)]
|
||||
|
@ -26,8 +26,8 @@ mod constants {
|
||||
/// The chunk size for the serial protocol.
|
||||
const CHUNK_SIZE: usize = 64;
|
||||
|
||||
const READ_TIMEOUT_MS: u64 = 100000;
|
||||
const WRITE_TIMEOUT_MS: u64 = 100000;
|
||||
const READ_TIMEOUT_MS: u64 = 0;
|
||||
const WRITE_TIMEOUT_MS: u64 = 1000;
|
||||
|
||||
/// An available transport for connecting with a device.
|
||||
#[derive(Debug)]
|
||||
|
Loading…
Reference in New Issue
Block a user