Remove shadowed variable

pull/78/head
z-riley 2 years ago
parent b0dd501d05
commit cbc94b0f67
No known key found for this signature in database

@ -1107,8 +1107,7 @@ const (
// // The reading is less than about 2.4 V. // // The reading is less than about 2.4 V.
// } // }
func (d *Dev) GetAnalogReading(pin Pin) (uint16, error) { func (d *Dev) GetAnalogReading(pin Pin) (uint16, error) {
offset := OffsetAnalogReadingSCL + 2*offset(pin) return d.getVar16(OffsetAnalogReadingSCL + 2*offset(pin))
return d.getVar16(offset)
} }
// IsDigitalReading gets a digital reading from the specified pin. // IsDigitalReading gets a digital reading from the specified pin.

Loading…
Cancel
Save