Skip to content

Commit 5966632

Browse files
kulothunganugCalcProgrammer1
authored andcommitted
Add support for msi b850m gaming plus wifi6e
1 parent 76d3a60 commit 5966632

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

Controllers/MSIMysticLightController/MSIMysticLight761Controller/MSIMysticLight761Controller.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ static const std::vector<MSI_ZONE> zone_set1 =
4545
MSI_ZONE_JARGB_3,
4646
};
4747

48-
static const std::string board_names[] =
49-
{
50-
"MSI MAG X870 TOMAHAWK WIFI (MS-7E51)",
51-
"MSI MAG B850M MORTAR WIFI (MS-7E61)",
52-
"MSI MPG B850I EDGE TI WIFI (MS-7E79)",
53-
"MSI X870 GAMING PLUS WIFI (MS-7E47)"
48+
static const std::string board_names[] =
49+
{
50+
"MSI MAG X870 TOMAHAWK WIFI (MS-7E51)",
51+
"MSI MAG B850M MORTAR WIFI (MS-7E61)",
52+
"MSI MPG B850I EDGE TI WIFI (MS-7E79)",
53+
"MSI X870 GAMING PLUS WIFI (MS-7E47)",
54+
"MSI B850M GAMING PLUS WIFI6E (MS-7E81)"
5455
};
5556

5657
static const mystic_light_761_config board_configs[] =
@@ -59,6 +60,7 @@ static const mystic_light_761_config board_configs[] =
5960
{ &(board_names[1]), 0, 0, 0, 1, &zone_set1, MSIMysticLight761Controller::DIRECT_MODE_ZONE_BASED }, // MSI MAG B850M MORTAR WIFI
6061
{ &(board_names[2]), 0, 0, 0, 1, &zone_set1, MSIMysticLight761Controller::DIRECT_MODE_ZONE_BASED }, // MSI MPG B850I EDGE TI WIFI
6162
{ &(board_names[3]), 0, 0, 0, 1, &zone_set1, MSIMysticLight761Controller::DIRECT_MODE_ZONE_BASED }, // MSI X870 GAMING PLUS WIFI
63+
{ &(board_names[4]), 0, 0, 0, 1, &zone_set1, MSIMysticLight761Controller::DIRECT_MODE_ZONE_BASED }, // MSI B850M GAMING PLUS WIFI6E
6264
};
6365

6466

@@ -272,13 +274,13 @@ MSIMysticLight761Controller::MSIMysticLight761Controller
272274
MSIMysticLight761Controller::~MSIMysticLight761Controller()
273275
{
274276
hid_close(dev);
275-
277+
276278
if(data)
277279
{
278280
delete data;
279281
data = nullptr;
280282
}
281-
283+
282284
for(ZoneConfig& zone : zone_configs)
283285
{
284286
if(zone.zone_data)

Controllers/MSIMysticLightController/MSIMysticLightControllerDetect.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ REGISTER_HID_DETECTOR_PU("MSI Mystic Light MS_7E07", DetectMSIMysticLightCont
245245
REGISTER_HID_DETECTOR_PU("MSI Mystic Light MS_7E09", DetectMSIMysticLightControllers, MSI_USB_VID, 0x7E09, 0x0001, 0x00);
246246
REGISTER_HID_DETECTOR_PU("MSI Mystic Light MS_7E10", DetectMSIMysticLightControllers, MSI_USB_VID, 0x7E10, 0x0001, 0x00);
247247
REGISTER_HID_DETECTOR_PU("MSI Mystic Light MS_B926", DetectMSIMysticLightControllers, MSI_USB_VID, 0xB926, 0x0001, 0x00);
248+
REGISTER_HID_DETECTOR_PU("MSI Mystic Light MS_7E81", DetectMSIMysticLightControllers, MSI_USB_VID, 0x7E81, 0x0001, 0x00);
248249
// Detector for the set of common boards
249250
REGISTER_HID_DETECTOR_PU("MSI Mystic Light Common", DetectMSIMysticLightControllers, MSI_USB_VID_COMMON, MSI_USB_PID_COMMON, 0x0001, 0x00);
250251
REGISTER_HID_DETECTOR_PU("MSI Mystic Light X870", DetectMSIMysticLightControllers, MSI_USB_VID_COMMON, MSI_USB_PID_COMMON, 0xFF00, 0x01);

0 commit comments

Comments
 (0)