mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 11:43:14 +08:00
Fix #224
This commit is contained in:
parent
e047d223e4
commit
5fbbbc30ba
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ function wait4proxmark_macOS {
|
||||||
function wait4proxmark_Windows {
|
function wait4proxmark_Windows {
|
||||||
echo >&2 "Waiting for Proxmark to appear..."
|
echo >&2 "Waiting for Proxmark to appear..."
|
||||||
while true; do
|
while true; do
|
||||||
device=$(wmic path Win32_SerialPort get DeviceID,PNPDeviceID 2>/dev/null | awk 'NR==2')
|
device=$(wmic path Win32_SerialPort where "PNPDeviceID like '%VID_9AC4&PID_4B8F%'" get DeviceID,PNPDeviceID 2>/dev/null | awk 'NR==2')
|
||||||
if [[ $device =~ VID_9AC4\&PID_4B8F ]]; then
|
if [[ $device != "" ]]; then
|
||||||
PM3=${device/ */}
|
PM3=${device/ */}
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue