summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-04-01 01:51:31 -0400
committera1xd <[email protected]>2021-04-01 01:51:31 -0400
commit14bde56daf188bfc027dc8ead5b45ec0aa1109d6 (patch)
tree6c674efea62c4e945e4d8ed3e947189742486015 /driver
parentrefactor lut/motivity (diff)
downloadrawaccel-14bde56daf188bfc027dc8ead5b45ec0aa1109d6.tar.xz
rawaccel-14bde56daf188bfc027dc8ead5b45ec0aa1109d6.zip
update rest
grapher is still broken refactored io / error handling a bit
Diffstat (limited to 'driver')
-rw-r--r--driver/driver.cpp2
-rw-r--r--driver/driver.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/driver/driver.cpp b/driver/driver.cpp
index 89f09dc..fbc2d3d 100644
--- a/driver/driver.cpp
+++ b/driver/driver.cpp
@@ -210,7 +210,7 @@ Return Value:
DebugPrint(("RetrieveOutputBuffer failed: 0x%x\n", status));
}
else {
- *reinterpret_cast<ra::version_t*>(buffer) = { RA_VER_MAJOR, RA_VER_MINOR, RA_VER_PATCH };
+ *reinterpret_cast<ra::version_t*>(buffer) = ra::version;
bytes_out = sizeof(ra::version_t);
}
break;
diff --git a/driver/driver.h b/driver/driver.h
index 56742f6..6184a69 100644
--- a/driver/driver.h
+++ b/driver/driver.h
@@ -1,9 +1,8 @@
#pragma once
#include "rawaccel-base.hpp"
+#include "rawaccel-io-def.h"
-#define NOMINMAX
-#include <ntddk.h>
#include <kbdmou.h>
#include <wdf.h>