We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebde1ab commit 7e2c4d7Copy full SHA for 7e2c4d7
asyncgpio/gpio.py
@@ -124,7 +124,7 @@ def __enter__(self):
124
if self._state in _IN_USE:
125
raise OSError("This line is already in use")
126
if self._state == _FREE:
127
- raise RuntimeError("You need to call .open() or .event()")
+ raise RuntimeError("You need to call .open() or .monitor()")
128
self._line = gpio.lib.gpiod_chip_get_line(self._chip._chip, self._offset)
129
if self._line == gpio.ffi.NULL:
130
raise OSError("unable to get line")
0 commit comments