From 27f14e663b09e7f6b0659887cf96652f502232eb Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Mon, 24 Apr 2017 10:16:47 -0400 Subject: [PATCH] bme280: fix Halt references --- devices/bme280/bme280.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/bme280/bme280.go b/devices/bme280/bme280.go index 9cd1311..b8afca7 100644 --- a/devices/bme280/bme280.go +++ b/devices/bme280/bme280.go @@ -141,7 +141,7 @@ type Opts struct { // NewI2C returns an object that communicates over I²C to BME280 environmental // sensor. // -// It is recommended to call Stop() when done with the device so it stops +// It is recommended to call Halt() when done with the device so it stops // sampling. func NewI2C(b i2c.Bus, opts *Opts) (*Dev, error) { addr := uint16(0x76) @@ -169,7 +169,7 @@ func NewI2C(b i2c.Bus, opts *Opts) (*Dev, error) { // filter if planing to call frequently, else use S500ms to get a bit more than // one reading per second. // -// It is recommended to call Stop() when done with the device so it stops +// It is recommended to call Halt() when done with the device so it stops // sampling. // // When using SPI, the CS line must be used.