diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index 1da60525..f6a2e4f1 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -197,7 +197,7 @@ def TouchSerialPort(env, port, baudrate): sleep(0.3) -def WaitForNewSerialPort(env, before): +def WaitForNewSerialPort(_, before): new_port = None elapsed = 0 while elapsed < 10: