Skip to content

Commit

Permalink
change status MONOCHROME for the K70_LUX_NRGB back to RGB
Browse files Browse the repository at this point in the history
See issue #87. If the KB is noted as a monochrome, the brightness
of the keyboard does not change if a color profile is loaded.
  • Loading branch information
frickler24 committed Mar 1, 2017
1 parent b1d65e3 commit 205800c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ckb-daemon/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@
const char* vendor_str(short vendor);
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)
/// 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)
/// Note2: A similar construct is for K70_LUX_NRGB: The same protocol as the RGB version, so it is not mentioned here as MONOCHROME
#define IS_RGB(vendor, product) ((vendor) == (V_CORSAIR) && (product) != (P_K65_NRGB) && (product) != (P_K70_NRGB) && (product) != (P_K95_NRGB))
#define IS_MONOCHROME(vendor, product) ((vendor) == (V_CORSAIR) && ((product) == (P_STRAFE_NRGB) || (product) == (P_K70_LUX_NRGB)))
#define IS_MONOCHROME(vendor, product) ((vendor) == (V_CORSAIR) && ((product) == (P_STRAFE_NRGB)))
#define IS_RGB_DEV(kb) IS_RGB((kb)->vendor, (kb)->product)
#define IS_MONOCHROME_DEV(kb) IS_MONOCHROME((kb)->vendor, (kb)->product)

Expand Down

0 comments on commit 205800c

Please sign in to comment.