File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -642,16 +642,19 @@ def _get_params(self):
642
642
return {
643
643
"host" : self .host ,
644
644
"index" : self .local .index ,
645
+ "invert" : self .local .invert ,
645
646
}
646
647
647
648
def _get_start_params (self ):
648
649
return {
649
650
"index" : self .local .index ,
651
+ "invert" : self .local .invert ,
650
652
}
651
653
652
654
def _start (self , start_params ):
653
655
"""Start a GPIO export to userspace"""
654
656
index = start_params ["index" ]
657
+ invert = start_params ["invert" ]
655
658
656
659
if self .export_path .exists ():
657
660
self .system_exported = True
@@ -672,7 +675,6 @@ def _stop(self, start_params):
672
675
with open (export_sysfs_path , mode = "wb" ) as unexport :
673
676
unexport .write (str (index ).encode ("utf-8" ))
674
677
675
-
676
678
exports ["SysfsGPIO" ] = GPIOSysFSExport
677
679
exports ["MatchedSysfsGPIO" ] = GPIOSysFSExport
678
680
You can’t perform that action at this time.
0 commit comments