🐛 Virtual: Resend ratio setting should be an integer
Fixes issue editing settings in the UI via VP settings plugin: `Unexpected error while connecting to serial port VIRTUAL, baudrate 250000 from hook virtual_printer: TypeError: 'unsupported operand type(s) for //: 'int' and 'str'' @ comm.py:_open_serial:3667`
This commit is contained in:
1 parent
38256815ef
commit
edf83dbacd
1 file changed
+1
-1
@@ -202,7 +202,7 @@ class VirtualPrinter(object):
|
||||
|
||||
self._received_lines = 0
|
||||
self._resend_every_n = 0
|
||||
self._calculate_resend_every_n(self._settings.get(["resend_ratio"]))
|
||||
self._calculate_resend_every_n(self._settings.get_int(["resend_ratio"]))
|
||||
|
||||
self._dont_answer = False
|
||||
|
||||
|
||||
Reference in new issue
Block a user