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 76a4276 commit d04e68bCopy full SHA for d04e68b
pcf8591/pcf8591.go
@@ -76,7 +76,7 @@ func (p ADCPin) Get() uint16 {
76
p.d.bus.Tx(p.d.Address, tx, rx)
77
78
// scale result to 16bit value like other ADCs
79
- return uint16(rx[1] << 8)
+ return uint16(rx[1]) << 8
80
}
81
82
// Configure here just for interface compatibility.
0 commit comments