Skip to content

Commit 626d7d5

Browse files
committed
remove timeout
1 parent 9d407e8 commit 626d7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ fn perform_writes(
245245
raw_data_tx: &Sender<Packet>,
246246
t_zero: Instant,
247247
) {
248-
if let Ok(cmd) = send_rx.recv_timeout(Duration::from_millis(1)) {
248+
if let Ok(cmd) = send_rx.try_recv() {
249249
if let Err(e) = serial_write(port, cmd.as_bytes()) {
250250
log::error!("Error sending command: {e}");
251251
return;

0 commit comments

Comments
 (0)