Increase timeout time, since erase command can take some time

This commit is contained in:
Marek Kraus 2022-11-17 20:57:31 +01:00
parent cae1bf0202
commit 2d7eb72e80

View File

@ -106,7 +106,7 @@ int32_t blisp_receive_response(struct blisp_device* device, bool expect_payload)
// TODO: Check checksum // TODO: Check checksum
int ret; int ret;
struct sp_port* serial_port = device->serial_port; struct sp_port* serial_port = device->serial_port;
ret = sp_blocking_read(serial_port, &device->rx_buffer[0], 2, 500); ret = sp_blocking_read(serial_port, &device->rx_buffer[0], 2, 1000);
if (ret < 2) { if (ret < 2) {
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "Failed to receive response. (ret = %d)\n", ret); fprintf(stderr, "Failed to receive response. (ret = %d)\n", ret);