updated dependencies
This commit is contained in:
1 parent
0f2ece3eaf
commit
f18d0f36f1
4 files changed
+7
-7
No files matched your search
+3
-3
@@ -310,9 +310,9 @@ func (p *Pin) Read() gpio.Level {
|
||||
// This function is very fast.
|
||||
func (p *Pin) FastRead() gpio.Level {
|
||||
|
||||
foo := drvGPIO.gpioMemory.groups[p.group]
|
||||
fmt.Printf("Group value is: %d", foo.data)
|
||||
return gpio.Level(foo.data&(1<<p.offset) != 0)
|
||||
foo := drvGPIO.gpioMemory.groups[p.group].data
|
||||
fmt.Printf("Group value is: %d", foo)
|
||||
return gpio.Level(foo&(1<<p.offset) != 0)
|
||||
}
|
||||
|
||||
// WaitForEdge implements gpio.PinIn.
|
||||
|
||||
Reference in new issue
Block a user