aboutsummaryrefslogtreecommitdiff
path: root/src/sample_cli.c
diff options
context:
space:
mode:
authorRyan Ward <[email protected]>2021-08-06 22:15:39 -0500
committerRyan Ward <[email protected]>2021-08-06 22:15:39 -0500
commitd847e9be0bcc37c031d1d97e30ebfc03ae7dc2e5 (patch)
tree3040de42d958db274cac90e50ef62bd9922f1a8b /src/sample_cli.c
parente1dcd1fdab204e6ab9eaee3e30bf6ffea67f01b1 (diff)
downloadlibrazermacos-d847e9be0bcc37c031d1d97e30ebfc03ae7dc2e5.tar.xz
librazermacos-d847e9be0bcc37c031d1d97e30ebfc03ae7dc2e5.zip
Test in the sample_cli to test functionality
Diffstat (limited to 'src/sample_cli.c')
-rw-r--r--src/sample_cli.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sample_cli.c b/src/sample_cli.c
index 5236c23..5778a8a 100644
--- a/src/sample_cli.c
+++ b/src/sample_cli.c
@@ -11,6 +11,13 @@ int main(int argc, const char * argv[]) {
for (int i = 0; i < allDevices.size; i++) {
RazerDevice device = razerDevices[i];
printf("%#06x\n", device.productId);
+
+ // Testing out the blackwidow v3 pro changes by switching to wave
+ if (device.productId == 0x025A)
+ {
+ printf("Found blackwidow v3 pro keyboard (wired)\n");
+ razer_attr_write_mode_spectrum(device.usbDevice, "1", 0);
+ }
}
closeAllRazerDevices(allDevices);