summaryrefslogtreecommitdiff
path: root/common/rawaccel-io.hpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-09-01 22:43:49 -0400
committerGitHub <[email protected]>2020-09-01 22:43:49 -0400
commite44a437626a81f96ff1c10734731e3238bb2c995 (patch)
tree28ebe356b2954911c2bbb4f09ac5ddee12578b31 /common/rawaccel-io.hpp
parentMerge pull request #17 from a1xd/indep (diff)
parentadd 1s write delay to driver (diff)
downloadrawaccel-e44a437626a81f96ff1c10734731e3238bb2c995.tar.xz
rawaccel-e44a437626a81f96ff1c10734731e3238bb2c995.zip
Merge pull request #18 from a1xd/write-delay
add 1s write delay to driver
Diffstat (limited to 'common/rawaccel-io.hpp')
-rw-r--r--common/rawaccel-io.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/rawaccel-io.hpp b/common/rawaccel-io.hpp
index 74e2d1e..e8641d1 100644
--- a/common/rawaccel-io.hpp
+++ b/common/rawaccel-io.hpp
@@ -74,10 +74,7 @@ namespace rawaccel {
CloseHandle(ra_handle);
if (!success) {
- if (auto err = GetLastError(); err != ERROR_BUSY) {
- throw std::system_error(err, std::system_category(), "DeviceIoControl failed");
- }
- throw cooldown_error();
+ throw std::system_error(GetLastError(), std::system_category(), "DeviceIoControl failed");
}
}