summaryrefslogtreecommitdiff
path: root/wrapper/wrapper.cpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-01-05 18:05:48 -0500
committera1xd <[email protected]>2021-01-05 18:05:48 -0500
commit6969310edd56edb555dd98acbc1478caa5728593 (patch)
tree52915ea646db380cad119c17c484660b38ff8724 /wrapper/wrapper.cpp
parentUpdate driver/driver.h (diff)
downloadrawaccel-6969310edd56edb555dd98acbc1478caa5728593.tar.xz
rawaccel-6969310edd56edb555dd98acbc1478caa5728593.zip
size device id/hwids based on docs
this also changes the connect ioctl to not abort when hwid query fails
Diffstat (limited to 'wrapper/wrapper.cpp')
-rw-r--r--wrapper/wrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wrapper/wrapper.cpp b/wrapper/wrapper.cpp
index 7ac3a8d..7e3f736 100644
--- a/wrapper/wrapper.cpp
+++ b/wrapper/wrapper.cpp
@@ -79,7 +79,7 @@ public ref struct DriverSettings
double minimumTime;
[JsonProperty("Device Hardware ID", Required = Required::Default)]
- [MarshalAs(UnmanagedType::ByValTStr, SizeConst = 512)]
+ [MarshalAs(UnmanagedType::ByValTStr, SizeConst = MAX_HWID_LEN)]
String^ deviceHardwareID;
bool ShouldSerializeminimumTime()