Fix a mistake in the error checking
This is a small bug that was introduced long time ago, with commit 84563c6303a4ab263ea19c973d3f0bbfe6fc0955.
This commit is contained in:
parent
a833992ed6
commit
81f3fdd854
@ -182,7 +182,7 @@ hw_frog_transfer (hw_frog_device_t *device,
|
|||||||
// Read the ready byte.
|
// Read the ready byte.
|
||||||
unsigned char answer[1] = {0};
|
unsigned char answer[1] = {0};
|
||||||
status = dc_iostream_read (device->iostream, answer, sizeof (answer), NULL);
|
status = dc_iostream_read (device->iostream, answer, sizeof (answer), NULL);
|
||||||
if (status != sizeof (answer)) {
|
if (status != DC_STATUS_SUCCESS) {
|
||||||
ERROR (abstract->context, "Failed to receive the ready byte.");
|
ERROR (abstract->context, "Failed to receive the ready byte.");
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user