Skip to content

Commit 3c60d4c

Browse files
committed
gpiodriver: allow GpioDigitalOutputDriver match against MatchedSysfsGPIO
The documentation states that the GpioDigitalOutputDriver should bind to the following three 'gpio' options: - SysfsGPIO - MatchedSysfsGPIO - NetworkSysfsGPIO However, the bindings list is: bindings = { "gpio": {"SysfsGPIO", "NetworkSysfsGPIO"}, } and as a result, if I try to bind these two in an environment, I see errors like: labgrid.exceptions.NoSupplierFoundError: binding copilot-output-driver failed: no supplier matching {'NetworkSysfsGPIO', 'SysfsGPIO'} found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml')) (errors: [NoResourceFoundError(msg="no NetworkSysfsGPIO resource found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml'))", filter=None, found=None), NoResourceFoundError(msg="no SysfsGPIO resource found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml'))", filter=None, found=None)]) Adjust the list to include MatchedSysfsGPIO so that this works (and so that the docs are correct). Signed-off-by: Trevor Gamblin <[email protected]>
1 parent 080502d commit 3c60d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labgrid/driver/gpiodriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class GpioDigitalOutputDriver(Driver, DigitalOutputProtocol):
1515

1616
bindings = {
17-
"gpio": {"SysfsGPIO", "NetworkSysfsGPIO"},
17+
"gpio": {"SysfsGPIO", "MatchedSysfsGPIO", "NetworkSysfsGPIO"},
1818
}
1919

2020
def __attrs_post_init__(self):

0 commit comments

Comments
 (0)