From cae1bf02026f88d54be5b0118d38eea1787881a3 Mon Sep 17 00:00:00 2001 From: Marek Kraus Date: Thu, 10 Nov 2022 21:35:33 +0100 Subject: [PATCH] Don't wait too much on handshake response --- lib/blisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blisp.c b/lib/blisp.c index c64cc05..a4a5e38 100644 --- a/lib/blisp.c +++ b/lib/blisp.c @@ -166,7 +166,7 @@ blisp_device_handshake(struct blisp_device* device, bool in_ef_loader) { if (ret < 0) { return -1; } - ret = sp_blocking_read(serial_port, device->rx_buffer, 20, 1000); + ret = sp_blocking_read(serial_port, device->rx_buffer, 20, 50); if (ret >= 2) { for (uint8_t j = 0; j < (ret - 1); j++) { if (device->rx_buffer[j] == 'O' && device->rx_buffer[j + 1] == 'K') {