update IS_RGB and IS_V3_OVERRIDE with K68

This commit is contained in:
Casey Li
2018-02-18 01:00:20 +02:00
committed by Tasos Sahanidis
parent 46d5dc10ea
commit 711f67cfe3
+3 -3
View File
@@ -149,7 +149,7 @@ const char* product_str(short product);
/// RGB vs non-RGB test
/// (note: non-RGB Strafe is still considered "RGB" in that it shares the same protocol.
/// The difference is denoted with the "monochrome" feature).
#define IS_RGB(vendor, product) ((vendor) == (V_CORSAIR) && (product) != (P_K65_NRGB) && (product) != (P_K70_NRGB) && (product) != (P_K95_NRGB))
#define IS_RGB(vendor, product) ((vendor) == (V_CORSAIR) && (product) != (P_K65_NRGB) && (product) != (P_K68_NRGB) && (product) != (P_K70_NRGB) && (product) != (P_K95_NRGB))
/// The difference between non RGB and monochrome is, that monochrome has lights, but just in one color.
/// nonRGB has no lights.
@@ -175,7 +175,7 @@ const char* product_str(short product);
#define IS_PLATINUM(kb) ((kb)->vendor == V_CORSAIR && ((kb)->product == P_K95_PLATINUM))
/// Used for new devices that come with V3 firmware endpoint configuration out of the factory, but have fwversion < 0x300.
#define IS_V3_OVERRIDE(kb) (0)
#define IS_V3_OVERRIDE(kb) (IS_K68(kb))
/// Used when a device has a firmware with a low version number that uses the new endpoint configuration.
#define IS_V2_OVERRIDE(kb) (IS_V3_OVERRIDE(kb) || IS_PLATINUM(kb) || IS_K63(kb) || IS_K68(kb) || IS_HARPOON(kb) || IS_GLAIVE(kb) || (kb)->product == P_STRAFE_NRGB_2)
@@ -202,7 +202,7 @@ const char* product_str(short product);
/// It is used in many places (see macros above) but often also overwritten to the fixed value of 10.
/// Pure Hacker code.
#define USB_DELAY_DEFAULT 5
/// Start the USB main loop. Returns program exit code when finished
int usbmain();