From d3629908d4c220dd526c12804ad54865db33f9fd Mon Sep 17 00:00:00 2001 From: John Pauley Date: Wed, 3 May 2017 18:23:27 -0400 Subject: [PATCH] update example --- examples/raspi_ina3221.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/raspi_ina3221.go b/examples/raspi_ina3221.go index f3c630db..684477c7 100644 --- a/examples/raspi_ina3221.go +++ b/examples/raspi_ina3221.go @@ -27,19 +27,19 @@ func main() { if err != nil { } - log.Printf("Ch 1 Shunt Voltage: %f", bv) + log.Printf("Ch 1 Shunt Voltage: %f", sv) ma, err := ina.GetCurrent(i2c.INA3221Channel1) if err != nil { } - log.Printf("Ch 1 Current: %f", bv) + log.Printf("Ch 1 Current: %f", ma) lv, err := ina.GetLoadVoltage(i2c.INA3221Channel1) if err != nil { } - log.Printf("Ch 1 Load Voltage: %f", bv) + log.Printf("Ch 1 Load Voltage: %f", lv) }) }