mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-28 18:01:39 -04:00
Update MSI Mystic Light common controller files to new standardized header comment
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
/*-----------------------------------------*\
|
||||
| MSIMysticLightCommon.h |
|
||||
| |
|
||||
| Common definitions and types for all MSI |
|
||||
| Mystic Light variants |
|
||||
| |
|
||||
| Adam Honse 3/6/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| MSIMysticLightCommon.h |
|
||||
| |
|
||||
| Common definitions for MSI Mystic Light motherboards |
|
||||
| |
|
||||
| Adam Honse 06 Mar 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
@@ -107,7 +109,7 @@ enum MSI_BRIGHTNESS
|
||||
MSI_BRIGHTNESS_LEVEL_70 = 7,
|
||||
MSI_BRIGHTNESS_LEVEL_80 = 8,
|
||||
MSI_BRIGHTNESS_LEVEL_90 = 9,
|
||||
MSI_BRIGHTNESS_LEVEL_100 = 10,
|
||||
MSI_BRIGHTNESS_LEVEL_100 = 10,
|
||||
};
|
||||
|
||||
#define NUMOF_PER_LED_MODE_LEDS 240
|
||||
@@ -157,7 +159,7 @@ struct RainbowZoneData : ZoneData
|
||||
struct FeaturePacket_64
|
||||
{
|
||||
const unsigned char report_id = 0x02; // Report ID
|
||||
const unsigned char second_byte = 0x00;
|
||||
const unsigned char second_byte = 0x00;
|
||||
unsigned char mode = 0x00;
|
||||
unsigned char speed = 0x00;
|
||||
unsigned char brightness = 0x00;
|
||||
@@ -239,5 +241,4 @@ struct FeaturePacket_PerLED_185
|
||||
Color leds[NUMOF_PER_LED_MODE_LEDS];
|
||||
};
|
||||
|
||||
|
||||
#define MSI_USB_PID_COMMON 0x0076 // Common PID for a certain set of 185-byte boards
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| MSIMysticLightControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for MSI Mystic Light motherboards |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "Detector.h"
|
||||
#include "MSIMysticLight64Controller.h"
|
||||
#include "MSIMysticLight112Controller.h"
|
||||
@@ -10,11 +19,9 @@
|
||||
#include "dmiinfo.h"
|
||||
#include "LogManager.h"
|
||||
|
||||
|
||||
#define MSI_USB_VID 0x1462
|
||||
#define MSI_USB_VID_COMMON 0x0DB0
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------------*\
|
||||
| WARNING! |
|
||||
| |
|
||||
@@ -30,7 +37,7 @@
|
||||
| |
|
||||
| Detect MSI Mystic Light devices |
|
||||
| |
|
||||
\*-----------------------------------------------------------------------------------------*/
|
||||
\*----------------------------------------------------------------------------------------*/
|
||||
void DetectMSIMysticLightControllers
|
||||
(
|
||||
hid_device_info* info,
|
||||
|
||||
Reference in New Issue
Block a user