mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2025-04-21 03:56:19 +08:00
Fix PM3 hardware detection
This commit is contained in:
parent
9c89df4519
commit
d8d9178ce8
@ -120,12 +120,19 @@ void MainWindow::on_portSearchTimer_timeout()
|
|||||||
// qDebug() << info.isNull() << info.portName() << info.description() << info.serialNumber() << info.manufacturer();
|
// qDebug() << info.isNull() << info.portName() << info.description() << info.serialNumber() << info.manufacturer();
|
||||||
if(!info.isNull())
|
if(!info.isNull())
|
||||||
{
|
{
|
||||||
QString idString = (info.description() + info.serialNumber() + info.manufacturer()).toUpper();
|
QString idString = (info.description() + info.serialNumber() + info.manufacturer()).toLower();
|
||||||
QString portName = info.portName();
|
QString portName = info.portName();
|
||||||
|
|
||||||
newPortList << portName;
|
newPortList << portName;
|
||||||
if(info.hasProductIdentifier() && info.hasVendorIdentifier() && info.vendorIdentifier() == 0x9AC4 && info.productIdentifier() == 0x4B8F)
|
if(info.hasVendorIdentifier() && info.hasProductIdentifier())
|
||||||
|
{
|
||||||
|
quint16 vid = info.vendorIdentifier();
|
||||||
|
quint16 pid = info.productIdentifier();
|
||||||
|
if(vid == 0x9AC4 && pid == 0x4B8F)
|
||||||
portName += hint;
|
portName += hint;
|
||||||
|
else if(vid == 0x2D2D && pid == 0x504D)
|
||||||
|
portName += hint;
|
||||||
|
}
|
||||||
else if(idString.contains("proxmark") || idString.contains("iceman"))
|
else if(idString.contains("proxmark") || idString.contains("iceman"))
|
||||||
portName += hint;
|
portName += hint;
|
||||||
newPortNameList << portName;
|
newPortNameList << portName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user