Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(api): clarify warning on GPIO connection problem #6204

Merged
merged 1 commit into from
Jul 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)