From 9404d4475fff9656c6a4307c642507817b8eb485 Mon Sep 17 00:00:00 2001 From: WrathofthePast <75559873+WrathofthePast@users.noreply.github.com> Date: Fri, 25 Feb 2022 15:23:05 -0500 Subject: Parity improvements with openrazer and bug fixes (#28) * Parity improvements with openrazer - Allows Basilisk V3 to utilize its full 26000 DPI (this was missed in the PR that added support) - Fixes the minimum DPI - Prepares files to be setup as dependencies of openrazer * Update razermouse_driver.c --- src/include/razercommon.h | 11 +++++------ src/include/razermouse_driver.h | 3 +++ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src/include') diff --git a/src/include/razercommon.h b/src/include/razercommon.h index 56a5211..5df4f97 100644 --- a/src/include/razercommon.h +++ b/src/include/razercommon.h @@ -25,6 +25,10 @@ #define OFF 0x00 #define ON 0x01 +// LED STORAGE Options +#define NOSTORE 0x00 +#define VARSTORE 0x01 + // LED definitions #define ZERO_LED 0x00 #define SCROLL_WHEEL_LED 0x01 @@ -40,17 +44,12 @@ #define RIGHT_SIDE_LED 0x10 #define LEFT_SIDE_LED 0x11 -// LED STORAGE Options -#define NOSTORE 0x00 -#define VARSTORE 0x01 - // LED Effect definitions #define LED_STATIC 0x00 #define LED_BLINKING 0x01 #define LED_PULSATING 0x02 #define LED_SPECTRUM_CYCLING 0x04 - // Report Responses #define RAZER_CMD_BUSY 0x01 #define RAZER_CMD_SUCCESSFUL 0x02 @@ -120,4 +119,4 @@ struct razer_report get_empty_razer_report(void); unsigned char clamp_u8(unsigned char value, unsigned char min, unsigned char max); unsigned short clamp_u16(unsigned short value, unsigned short min, unsigned short max); -#endif \ No newline at end of file +#endif diff --git a/src/include/razermouse_driver.h b/src/include/razermouse_driver.h index c5dbbe7..f80345b 100644 --- a/src/include/razermouse_driver.h +++ b/src/include/razermouse_driver.h @@ -90,6 +90,9 @@ #define RAZER_NEW_MOUSE_RECEIVER_WAIT_MIN_US 31000 #define RAZER_NEW_MOUSE_RECEIVER_WAIT_MAX_US 31100 +#define RAZER_ATHERIS_RECEIVER_WAIT_MIN_US 400000 +#define RAZER_ATHERIS_RECEIVER_WAIT_MAX_US 400100 + #define RAZER_VIPER_MOUSE_RECEIVER_WAIT_MIN_US 59900 #define RAZER_VIPER_MOUSE_RECEIVER_WAIT_MAX_US 60000 -- cgit v1.2.3