From e6e8b5e2b3532196a270182e8bcce1f19e0a96ef Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Sun, 10 Sep 2017 20:58:24 -0400 Subject: [PATCH] bmxx80: clarify NewSPI documentation The doc stated that NewSPI could be used for BME280. It can also be used for BMP280. --- devices/bmxx80/bmxx80.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/bmxx80/bmxx80.go b/devices/bmxx80/bmxx80.go index 7b05d72..5f57470 100644 --- a/devices/bmxx80/bmxx80.go +++ b/devices/bmxx80/bmxx80.go @@ -320,8 +320,8 @@ func NewI2C(b i2c.Bus, addr uint16, opts *Opts) (*Dev, error) { return d, nil } -// NewSPI returns an object that communicates over SPI to BME280 environmental -// sensor. +// NewSPI returns an object that communicates over SPI to either a BME280 or +// BMP280 environmental sensor. // // It is recommended to call Halt() when done with the device so it stops // sampling.