Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/msigd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ static std::vector<identity_t> known_models =
{ PS341WU, "00?", "V06", "PS341WU", LT_NONE },
{ MAG274QRX, "00|", "V43", "MAG274QRX", LT_MYSTIC_OPTIX, true },
{ MD272QP, "00\x85", "V51", "MD272QP", LT_NONE }, // MAG274QRF-QD FW.011
{ MAG274QRX, "00\xb4", "V21", "MPG 274URDFW E16M", LT_MYSTIC_OPTIX }, // MPG 274URDFW E16M (4K dual-mode QD-OLED, mapped to MAG274QRX)
};

enum encoding_t
Expand Down Expand Up @@ -1673,14 +1674,14 @@ int main (int argc, char **argv)
int idx = 1;
for (auto &e : monitor_list)
{
mondev_t mon(logger, e, "MSI Gaming Controller", "");
mondev_t mon(logger, e, "", "");
pprintf("%d,%s,%s,%s,%s\n", idx, mon.serial(), mon.manufacturer(), mon.product(), e.path);
idx ++;
}
//return E_OK;
}

mondev_t usb(logger, monitor_list[monitor ? monitor - 1 : 0], "MSI Gaming Controller", serial);
mondev_t usb(logger, monitor_list[monitor ? monitor - 1 : 0], "", serial);

if (usb)
{
Expand Down
2 changes: 1 addition & 1 deletion src/phid.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class usbdev_t

m_vendor_id = info.idVendor;
m_product_id = info.idProduct;
if (sProduct != m_product)
if (!sProduct.empty() && sProduct != m_product)
{
m_log(DEBUG, "Product Id <%s> does not match requested <%s>", m_product, sProduct);
return 1;
Expand Down