♻️ Rewrite port/baudrate detection
Now they no longer are separate processes but one merged one. Port detection now will only test the two most common baudrates plus any additionally configured ones if there is more than one port to test, that way the additional overhead of having to cycle through both port and baudrate should be greatly reduced. As a consequence all avr_isp references have been finally removed. Closes #3394
This commit is contained in:
1 parent
a2c38dbc12
commit
2570b296ca
9 files changed
+129
-405
No files matched your search
@@ -25,16 +25,12 @@ SETTINGS_DEFAULTS = dict(enabled=False,
|
||||
import serial
|
||||
import requests.exceptions
|
||||
import errno
|
||||
import octoprint.util.avr_isp.ispBase
|
||||
import tornado.websocket
|
||||
|
||||
IGNORED_EXCEPTIONS = [
|
||||
# serial exceptions in octoprint.util.comm
|
||||
(serial.SerialException, lambda exc, logger, plugin, cb: logger == "octoprint.util.comm"),
|
||||
|
||||
# isp errors during port auto detection in octoprint.util.comm
|
||||
(octoprint.util.avr_isp.ispBase.IspError, lambda exc, logger, plugin, cb: logger == "octoprint.util.comm"),
|
||||
|
||||
# IOErrors of any kind due to a full file system
|
||||
(IOError, lambda exc, logger, plugin, cb: getattr(exc, "errno") and exc.errno in (getattr(errno, "ENOSPC"),)),
|
||||
|
||||
|
||||
Reference in new issue
Block a user