diff options
author | Szczepan Zalega <szczepan.zalega@gmail.com> | 2016-03-06 19:51:16 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan.zalega@gmail.com> | 2016-03-06 19:51:16 +0100 |
commit | f66b89b493fd282d4170617f85c29c47fca75cf4 (patch) | |
tree | 3aa49a562bcd7a81d6dca3340ffe5ae9d845b430 /include/device.h | |
parent | 85506009d3323e977b6de63b9b9c31760a2200fc (diff) | |
download | libnitrokey-f66b89b493fd282d4170617f85c29c47fca75cf4.tar.gz libnitrokey-f66b89b493fd282d4170617f85c29c47fca75cf4.tar.bz2 |
Checking device status after completion of get_feature report and retrying receiving if device status!=0, added FIXME notes of further work
Diffstat (limited to 'include/device.h')
-rw-r--r-- | include/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h index 768ac32..dc7832d 100644 --- a/include/device.h +++ b/include/device.h @@ -39,6 +39,11 @@ class Device { */ virtual CommError recv(void *packet); + int get_retry_count() { return m_retry_count; } + const; + std::chrono::milliseconds get_retry_timeout() { return m_retry_timeout; } + const; + protected: uint16_t m_vid; uint16_t m_pid; |