1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 07:20:56 +00:00

fix(rust/trezor-client) wait indefinitely when reading and shorter when writing data

This commit is contained in:
kimlwh 2025-01-03 16:24:42 +00:00 committed by matejcik
parent 1112f1abc0
commit 1d54c2b8c5
2 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,8 @@ use constants::{DEFAULT_DEBUG_PORT, DEFAULT_HOST, DEFAULT_PORT, LOCAL_LISTENER};
/// The chunk size for the serial protocol. /// The chunk size for the serial protocol.
const CHUNK_SIZE: usize = 64; const CHUNK_SIZE: usize = 64;
const READ_TIMEOUT_MS: u64 = 100000; const READ_TIMEOUT_MS: u64 = 0;
const WRITE_TIMEOUT_MS: u64 = 100000; const WRITE_TIMEOUT_MS: u64 = 1000;
/// An available transport for connecting with a device. /// An available transport for connecting with a device.
#[derive(Debug)] #[derive(Debug)]

View File

@ -26,8 +26,8 @@ mod constants {
/// The chunk size for the serial protocol. /// The chunk size for the serial protocol.
const CHUNK_SIZE: usize = 64; const CHUNK_SIZE: usize = 64;
const READ_TIMEOUT_MS: u64 = 100000; const READ_TIMEOUT_MS: u64 = 0;
const WRITE_TIMEOUT_MS: u64 = 100000; const WRITE_TIMEOUT_MS: u64 = 1000;
/// An available transport for connecting with a device. /// An available transport for connecting with a device.
#[derive(Debug)] #[derive(Debug)]