Skip to content
Snippets Groups Projects
Commit 8e81f070 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

More helpful error message.

parent 0a91a240
Branches
Tags
No related merge requests found
......@@ -244,7 +244,7 @@ eb_status_t eb_socket_detach(eb_socket_t socket, eb_address_t address);
* Return codes:
* OK - the remote etherbone device is ready
* ADDRESS - the network address could not be parsed
* FAIL - the remote address did not identify itself as etherbone conformant
* TIMEOUT - the remote host did not respond with etherbone
* WIDTH - could not negotiate an acceptable data bus width
* OOM - out of memory
*/
......
......@@ -131,7 +131,7 @@ eb_status_t eb_device_open(eb_socket_t socketp, const char* address, eb_width_t
if (device->widths == 0) {
eb_device_close(devicep);
*result = EB_NULL;
return EB_FAIL;
return EB_TIMEOUT;
}
device->widths &= proposed_widths;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment