Commit eb4c656fdc34ddcf3aae25e830523a24cfe80f2a

Authored by Olli-Pekka Kahilakoski
1 parent 5acf7461
Exists in master

Review comment: Use non-configurable baud rate for serial port for now

However, ensure that the configurable baud rate can be implemented back
easily if needed (namely, by reverting this commit).
Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
invesalius/gui/task_navigator.py
... ... @@ -287,12 +287,15 @@ class InnerFoldPanel(wx.Panel):
287 287 def OnEnableSerialPort(self, evt, ctrl):
288 288 if ctrl.GetValue():
289 289 from wx import ID_OK
290   - dlg_port = dlg.SetCOMPort(select_baud_rate=True)
  290 + dlg_port = dlg.SetCOMPort(select_baud_rate=False)
  291 +
291 292 if dlg_port.ShowModal() != ID_OK:
292 293 ctrl.SetValue(False)
293 294 return
294 295  
295   - com_port, baud_rate = dlg_port.GetValue()
  296 + com_port = dlg_port.GetValue()
  297 + baud_rate = 115200
  298 +
296 299 Publisher.sendMessage('Update serial port', serial_port_in_use=True, com_port=com_port, baud_rate=baud_rate)
297 300 else:
298 301 Publisher.sendMessage('Update serial port', serial_port_in_use=False)
... ...