diff --git a/include/aio.h b/include/aio.h index 1f4ecdc..18088ee 100644 --- a/include/aio.h +++ b/include/aio.h @@ -3,8 +3,8 @@ #include -#define CORSAIR_VID 0x1b1c -#define AIO_PID 0x0c13 +#define AIO_USB_VID 0x1b1c +#define AIO_USB_PID 0x0c13 enum aio_pump_mode_t : uint8_t { QUIET, diff --git a/src/aio.c b/src/aio.c index a13017a..fcb1c8f 100644 --- a/src/aio.c +++ b/src/aio.c @@ -41,9 +41,9 @@ static void aio_get_fan_speed(libusb_device_handle* aio, uint16_t *speeds) { void aio_detect(struct aio_t *aio) { libusb_init(NULL); - aio->handle = libusb_open_device_with_vid_pid(NULL, CORSAIR_VID, AIO_PID); + aio->handle = libusb_open_device_with_vid_pid(NULL, AIO_USB_VID, AIO_USB_PID); if (aio->handle == NULL) { - applog(LOG_ERR, "Can't open AIO USB device %x:%x", CORSAIR_VID, AIO_PID); + applog(LOG_ERR, "Can't open AIO USB device %x:%x", AIO_USB_VID, AIO_USB_PID); return; } @@ -53,7 +53,7 @@ void aio_detect(struct aio_t *aio) { const int ret = libusb_claim_interface(aio->handle, 0); if (ret == 0) - applog(LOG_INF, "found Corsair AIO device at %04x:%04x", CORSAIR_VID, AIO_PID); + applog(LOG_INF, "found Corsair AIO device at %04x:%04x", AIO_USB_VID, AIO_USB_PID); else applog(LOG_ERR, "failed to claim AIO device"); }