diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2010-08-14 18:58:24 +0200 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2012-05-18 13:44:07 +0200 |
commit | 9712599ec6173324beec2912fad970f2ee929f4d (patch) | |
tree | 1f3e7b2123780bfc16972682cc7e627202bf205a | |
parent | 3b11ed1c0c9f823a71f112ba6a13c8e5f4e8f6f5 (diff) | |
download | linux-firewire-utils-9712599ec6173324beec2912fad970f2ee929f4d.tar.gz |
firewire-request: set response_received
Do not forget to set the response_received variable. Otherwise, the
tool would complain about a timeout error if the response command
arrived after the request's ack.
-rw-r--r-- | src/firewire-request.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firewire-request.c b/src/firewire-request.c index 64f75e1..f0adec7 100644 --- a/src/firewire-request.c +++ b/src/firewire-request.c @@ -383,11 +383,13 @@ static void do_fcp(void) struct fw_cdev_event_request2 *request = (void *)buf; send_response(request->handle, RCODE_COMPLETE); print_data("response: ", request->data, request->length, false); + response_received = true; #endif } else if (event->type == FW_CDEV_EVENT_REQUEST) { struct fw_cdev_event_request *request = (void *)buf; send_response(request->handle, RCODE_COMPLETE); print_data("response: ", request->data, request->length, false); + response_received = true; } } } |