Skip to content
Snippets Groups Projects
Verified Commit 10362f2d authored by Alexander Wellbrock's avatar Alexander Wellbrock
Browse files

Rename the line consumer to 'pi-mqtt-gpio'

parent 5226f0b6
Branches
Tags
No related merge requests found
......@@ -52,8 +52,7 @@ class GPIO(GenericGPIO):
pin.bias = pullup
config = self.io.line_request()
config.consumer = 'pin' + offset
config.request_type = direction
config.consumer = 'pi-mqtt-gpio'
pin.request(config)
self.pins[offset] = pin
......@@ -73,7 +72,7 @@ class GPIO(GenericGPIO):
pin = self.chip.get_line(offset)
config = self.io.line_request()
config.consumer = 'pin' + offset
config.consumer = 'pi-mqtt-gpio'
config.request_type = edge
self.loop.create_task(self._add_event_detect(pin, self.interrupt_callback))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment