mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2026-07-14 22:55:32 +08:00
Revert part of the commit 12a0837
I forgot I have designed "Keep the client active" for issue #22 isBusy() is deprecated for blocking the port, but it doesn't matter.
This commit is contained in:
@@ -107,15 +107,15 @@ void PM3Process::setSerialListener(bool state)
|
||||
|
||||
void PM3Process::onTimeout() //when the proxmark3 client is unexpectedly terminated or the PM3 hardware is removed, the isBusy() will return false(only tested on Windows);
|
||||
{
|
||||
// isBusy() is a deprecated function.
|
||||
// It will always return false on Raspbian.
|
||||
// SerialListener needs to be removed.
|
||||
// isBusy() is a deprecated function because it will block the serial port when the port is not in use.
|
||||
// However, the PM3 client is supposed to use the serial port exclusively, so it should be fine
|
||||
// isBusy() will always return false on Raspbian, in this case, check "Keep the client active" in the Settings panel.
|
||||
//
|
||||
// qDebug()<<portInfo->isBusy();
|
||||
// if(!portInfo->isBusy())
|
||||
// {
|
||||
// killPM3();
|
||||
// }
|
||||
if(!portInfo->isBusy())
|
||||
{
|
||||
killPM3();
|
||||
}
|
||||
}
|
||||
|
||||
void PM3Process::testThread()
|
||||
|
||||
Reference in New Issue
Block a user