mirror of
https://github.com/pine64/blisp.git
synced 2025-01-03 04:10:31 +00:00
Increase timeout time, since erase command can take some time
This commit is contained in:
parent
cae1bf0202
commit
2d7eb72e80
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user