aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/device_proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/device_proto.h b/include/device_proto.h
index e05a303..79632d9 100644
--- a/include/device_proto.h
+++ b/include/device_proto.h
@@ -193,6 +193,8 @@ class Transaction : semantics::non_constructible {
int retry = dev.get_retry_count();
while (retry-- > 0) {
status = dev.recv(&resp);
+
+ dev.set_last_command_status(resp.last_command_status); // FIXME should be handled on device.recv
if (resp.device_status == 0) break;
Log::instance()("Device status is not ready (CRC error?) retrying..",
Loglevel::DEBUG); // FIXME translate device_status to log