From 6969310edd56edb555dd98acbc1478caa5728593 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Tue, 5 Jan 2021 18:05:48 -0500 Subject: size device id/hwids based on docs this also changes the connect ioctl to not abort when hwid query fails --- common/rawaccel-settings.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/rawaccel-settings.h') diff --git a/common/rawaccel-settings.h b/common/rawaccel-settings.h index c9bd247..f94e960 100644 --- a/common/rawaccel-settings.h +++ b/common/rawaccel-settings.h @@ -3,6 +3,8 @@ #include "vec2.h" #include "accel-base.hpp" +#define MAX_HWID_LEN 200 + namespace rawaccel { using milliseconds = double; @@ -23,7 +25,7 @@ namespace rawaccel { vec2d sens = { 1, 1 }; vec2d dir_multipliers = {}; milliseconds time_min = DEFAULT_TIME_MIN; - wchar_t device_hw_id[512] = {0}; + wchar_t device_hw_id[MAX_HWID_LEN] = {0}; }; } -- cgit v1.2.3