Skip to content

Commit

Permalink
fix(api): Clarify what is behind GPIO connection problems (#6204)
Browse files Browse the repository at this point in the history
(Only one device can connect at a time).

The message displayed when we fail to connect to GPIOs in Jupyter/Python script because another process is already using them doesn't explain that the reason stopping the server works is that it frees up the GPIOs for connecting. This may (or may not) be behind for example #6164.

This adds that to the message.
  • Loading branch information
theosanderson authored Jul 23, 2020
1 parent 2024f5d commit 5148f96
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions api/src/opentrons/drivers/rpi_drivers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ def build_gpio_chardev(chip_name: str) -> 'GPIODriverLike':
MODULE_LOG.warning(
'Failed to initialize character device, will not '
'be able to control gpios (lights, button, smoothie'
'kill, smoothie reset). If you need to control gpios, '
'first stop the robot server with systemctl stop '
'opentrons-robot-server. Until you restart the server '
'with systemctl start opentrons-robot-server, you will '
'be unable to control the robot using the Opentrons app.')
'kill, smoothie reset). Only one connection can be'
' made to the gpios at a time. '
'If you need to control gpios, first stop the robot '
'server with systemctl stop opentrons-robot-server. '
'Until you restart the server with systemctl start '
'opentrons-robot-server, you will be unable to '
'control the robot using the Opentrons app.')
from .gpio_simulator import SimulatingGPIOCharDev
return SimulatingGPIOCharDev(chip_name)

0 comments on commit 5148f96

Please sign in to comment.