From 05be9a5f5ea44d064cf4a8708e1eca625bbf4218 Mon Sep 17 00:00:00 2001
From: Benjamin Drung <bdrung@debian.org>
Date: Thu, 31 Dec 2020 19:36:51 +0100
Subject: Disable go-logger (missing license)

The go-logger library does not have copyright information in the git
repository, neither license headers in the go files nor a separate
license file. Therefore no rights to share and modify the code are
granted and it does not meet the DFSG.

So disable logging for now until go-logger comes with an open source
license.

Bug: https://github.com/d2r2/go-logger/issues/5
Signed-off-by: Benjamin Drung <bdrung@debian.org>
---
 bme280.go            | 40 +++++++++++++++++-----------------
 bmp180.go            | 52 ++++++++++++++++++++++----------------------
 bmp280.go            | 22 +++++++++----------
 bmp388.go            | 36 +++++++++++++++---------------
 examples/example1.go | 37 ++++++++++++++++---------------
 logger.go            |  8 +++----
 6 files changed, 99 insertions(+), 96 deletions(-)

diff --git a/bme280.go b/bme280.go
index c6fda7c..cf05d25 100644
--- a/bme280.go
+++ b/bme280.go
@@ -315,7 +315,7 @@ func (v *SensorBME280) IsBusy(i2c *i2c.I2C) (busy bool, err error) {
 		return false, err
 	}
 	b = b & 0x8
-	lg.Debugf("Busy flag=0x%0X", b)
+	//lg.Debugf("Busy flag=0x%0X", b)
 	return b != 0, nil
 }
 
@@ -451,12 +451,12 @@ func (v *SensorBME280) ReadTemperatureMult100C(i2c *i2c.I2C, accuracy AccuracyMo
 	}
 
 	var1 := ((ut>>3 - int32(v.Coeff.dig_T1())<<1) * int32(v.Coeff.dig_T2())) >> 11
-	lg.Debugf("var1=%v", var1)
+	//lg.Debugf("var1=%v", var1)
 	var2 := (((ut>>4 - int32(v.Coeff.dig_T1())) * (ut>>4 - int32(v.Coeff.dig_T1()))) >> 12 *
 		int32(v.Coeff.dig_T3())) >> 14
-	lg.Debugf("var1=%v", var2)
+	//lg.Debugf("var1=%v", var2)
 	tFine := var1 + var2
-	lg.Debugf("t_fine=%v", tFine)
+	//lg.Debugf("t_fine=%v", tFine)
 	t := (tFine*5 + 128) >> 8
 	return t, nil
 }
@@ -468,7 +468,7 @@ func (v *SensorBME280) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	if err != nil {
 		return 0, err
 	}
-	lg.Debugf("ut=%v, up=%v", ut, up)
+	//lg.Debugf("ut=%v, up=%v", ut, up)
 
 	err = v.ReadCoefficients(i2c)
 	if err != nil {
@@ -476,22 +476,22 @@ func (v *SensorBME280) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	}
 
 	var01 := ((ut>>3 - int32(v.Coeff.dig_T1())<<1) * int32(v.Coeff.dig_T2())) >> 11
-	lg.Debugf("var01=%v", var01)
+	//lg.Debugf("var01=%v", var01)
 	var02 := (((ut>>4 - int32(v.Coeff.dig_T1())) * (ut>>4 - int32(v.Coeff.dig_T1()))) >> 12 *
 		int32(v.Coeff.dig_T3())) >> 14
-	lg.Debugf("var01=%v", var02)
+	//lg.Debugf("var01=%v", var02)
 	tFine := var01 + var02
 
 	var1 := int64(tFine) - 128000
-	lg.Debugf("var1=%v", var1)
+	//lg.Debugf("var1=%v", var1)
 	var2 := var1 * var1 * int64(v.Coeff.dig_P6())
-	lg.Debugf("var2=%v", var2)
+	//lg.Debugf("var2=%v", var2)
 	var2 += (var1 * int64(v.Coeff.dig_P5())) << 17
 	var2 += int64(v.Coeff.dig_P4()) << 35
-	lg.Debugf("var2=%v", var2)
+	//lg.Debugf("var2=%v", var2)
 	var1 = (var1*var1*int64(v.Coeff.dig_P3()))>>8 + (var1*int64(v.Coeff.dig_P2()))<<12
 	var1 = ((int64(1)<<47 + var1) * int64(v.Coeff.dig_P1())) >> 33
-	lg.Debugf("var1=%v", var1)
+	//lg.Debugf("var1=%v", var1)
 	if var1 == 0 {
 		return 0, nil
 	}
@@ -520,19 +520,19 @@ func (v *SensorBME280) ReadHumidityMultQ2210(i2c *i2c.I2C,
 	if err != nil {
 		return true, 0, err
 	}
-	lg.Debugf("ut=%v, uh=%v", ut, uh)
+	//lg.Debugf("ut=%v, uh=%v", ut, uh)
 	err = v.ReadCoefficients(i2c)
 	if err != nil {
 		return true, 0, err
 	}
 
 	var01 := ((ut>>3 - int32(v.Coeff.dig_T1())<<1) * int32(v.Coeff.dig_T2())) >> 11
-	lg.Debugf("var01=%v", var01)
+	//lg.Debugf("var01=%v", var01)
 	var02 := (((ut>>4 - int32(v.Coeff.dig_T1())) * (ut>>4 - int32(v.Coeff.dig_T1()))) >> 12 *
 		int32(v.Coeff.dig_T3())) >> 14
-	lg.Debugf("var01=%v", var02)
+	//lg.Debugf("var01=%v", var02)
 	tFine := var01 + var02
-	lg.Debugf("t_fine=%v", tFine)
+	//lg.Debugf("t_fine=%v", tFine)
 
 	// Alternative version of humidity calculation from raw value
 	// based on float ariphmetics.
@@ -553,25 +553,25 @@ func (v *SensorBME280) ReadHumidityMultQ2210(i2c *i2c.I2C,
 
 	var v_x1 int32
 	v_x1 = tFine - 76800
-	lg.Debugf("v_x1=%v", v_x1)
+	//lg.Debugf("v_x1=%v", v_x1)
 
 	v_x1 = ((((uh << 14) - (int32(v.Coeff.dig_H4()) << 20) - (int32(v.Coeff.dig_H5()) * v_x1)) +
 		16384) >> 15) * (((((((v_x1*int32(v.Coeff.dig_H6()))>>10)*(((v_x1*
 		int32(v.Coeff.dig_H3()))>>11)+32768))>>10)+2097152)*
 		int32(v.Coeff.dig_H2()) + 8192) >> 14)
 
-	lg.Debugf("v_x1=%v", v_x1)
+	//lg.Debugf("v_x1=%v", v_x1)
 
 	v_x1 = v_x1 - (((((v_x1 >> 15) * (v_x1 >> 15)) >> 7) * int32(v.Coeff.dig_H1())) >> 4)
-	lg.Debugf("v_x1=%v", v_x1)
+	//lg.Debugf("v_x1=%v", v_x1)
 
 	if v_x1 < 0 {
 		v_x1 = 0
 	} else if v_x1 > 419430400 {
 		v_x1 = 419430400
 	}
-	lg.Debugf("v_x1=%v", v_x1)
+	//lg.Debugf("v_x1=%v", v_x1)
 	v_x1 = v_x1 >> 12
-	lg.Debugf("v_x1=%v", v_x1)
+	//lg.Debugf("v_x1=%v", v_x1)
 	return true, uint32(v_x1), nil
 }
diff --git a/bmp180.go b/bmp180.go
index 97bfac1..a1b3a93 100644
--- a/bmp180.go
+++ b/bmp180.go
@@ -231,7 +231,7 @@ func (v *SensorBMP180) IsBusy(i2c *i2c.I2C) (busy bool, err error) {
 		return false, err
 	}
 	b = b & 0x20
-	lg.Debugf("Busy flag=0x%0X", b)
+	//lg.Debugf("Busy flag=0x%0X", b)
 	return b != 0, nil
 }
 
@@ -273,7 +273,7 @@ func (v *SensorBMP180) getOversamplingRation(accuracy AccuracyMode) byte {
 // readUncompPressure reads atmospheric uncompensated pressure from sensor.
 func (v *SensorBMP180) readUncompPressure(i2c *i2c.I2C, accuracy AccuracyMode) (int32, error) {
 	oss := v.getOversamplingRation(accuracy)
-	lg.Debugf("oss=%v", oss)
+	//lg.Debugf("oss=%v", oss)
 	err := i2c.WriteRegU8(BMP180_CNTR_MEAS_REG, 0x34+(oss<<6))
 	if err != nil {
 		return 0, err
@@ -303,13 +303,13 @@ func (v *SensorBMP180) ReadTemperatureMult100C(i2c *i2c.I2C, mode AccuracyMode)
 	}
 	// Calculate temperature according to sensor specification
 	x1 := ((ut - int32(v.Coeff.dig_AC6())) * int32(v.Coeff.dig_AC5())) >> 15
-	lg.Debugf("x1=%v", x1)
+	//lg.Debugf("x1=%v", x1)
 	x2 := (int32(v.Coeff.dig_MC()) << 11) / (x1 + int32(v.Coeff.dig_MD()))
-	lg.Debugf("x2=%v", x2)
+	//lg.Debugf("x2=%v", x2)
 	b5 := x1 + x2
-	lg.Debugf("b5=%v", b5)
+	//lg.Debugf("b5=%v", b5)
 	t := ((b5 + 8) >> 4) * 10
-	lg.Debugf("t=%v", t)
+	//lg.Debugf("t=%v", t)
 	return t, nil
 }
 
@@ -321,13 +321,13 @@ func (v *SensorBMP180) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	if err != nil {
 		return 0, err
 	}
-	lg.Debugf("ut=%v", ut)
+	//lg.Debugf("ut=%v", ut)
 
 	up, err := v.readUncompPressure(i2c, accuracy)
 	if err != nil {
 		return 0, err
 	}
-	lg.Debugf("up=%v", up)
+	//lg.Debugf("up=%v", up)
 
 	err = v.ReadCoefficients(i2c)
 	if err != nil {
@@ -336,46 +336,46 @@ func (v *SensorBMP180) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 
 	// Calculate pressure according to sensor specification
 	x1 := ((ut - int32(v.Coeff.dig_AC6())) * int32(v.Coeff.dig_AC5())) >> 15
-	lg.Debugf("x1=%v", x1)
+	//lg.Debugf("x1=%v", x1)
 	x2 := (int32(v.Coeff.dig_MC()) << 11) / (x1 + int32(v.Coeff.dig_MD()))
-	lg.Debugf("x2=%v", x2)
+	//lg.Debugf("x2=%v", x2)
 	b5 := x1 + x2
-	lg.Debugf("b5=%v", b5)
+	//lg.Debugf("b5=%v", b5)
 	b6 := b5 - 4000
-	lg.Debugf("b6=%v", b6)
+	//lg.Debugf("b6=%v", b6)
 	x1 = (int32(v.Coeff.dig_B2()) * ((b6 * b6) >> 12)) >> 11
-	lg.Debugf("x1=%v", x1)
+	//lg.Debugf("x1=%v", x1)
 	x2 = (int32(v.Coeff.dig_AC2()) * b6) >> 11
-	lg.Debugf("x2=%v", x2)
+	//lg.Debugf("x2=%v", x2)
 	x3 := x1 + x2
-	lg.Debugf("x3=%v", x3)
+	//lg.Debugf("x3=%v", x3)
 	b3 := (((int32(v.Coeff.dig_AC1())*4 + x3) << uint32(oss)) + 2) / 4
-	lg.Debugf("b3=%v", b3)
+	//lg.Debugf("b3=%v", b3)
 	x1 = (int32(v.Coeff.dig_AC3()) * b6) >> 13
-	lg.Debugf("x1=%v", x1)
+	//lg.Debugf("x1=%v", x1)
 	x2 = ((int32(v.Coeff.dig_B1()) * (b6 * b6)) >> 12) >> 16
-	lg.Debugf("x2=%v", x2)
+	//lg.Debugf("x2=%v", x2)
 	x3 = ((x1 + x2) + 2) >> 2
-	lg.Debugf("x3=%v", x3)
+	//lg.Debugf("x3=%v", x3)
 	b4 := (uint32(v.Coeff.dig_AC4()) * uint32(x3+32768)) >> 15
-	lg.Debugf("b4=%v", b4)
+	//lg.Debugf("b4=%v", b4)
 	b7 := (uint32(up) - uint32(b3)) * (50000 >> uint32(oss))
-	lg.Debugf("b7=%v", b7)
+	//lg.Debugf("b7=%v", b7)
 	var p1 int32
 	if b7 < 0x80000000 {
 		p1 = int32((b7 * 2) / b4)
 	} else {
 		p1 = int32((b7 / b4) * 2)
 	}
-	lg.Debugf("p=%v", p1)
+	//lg.Debugf("p=%v", p1)
 	x1 = (p1 >> 8) * (p1 >> 8)
-	lg.Debugf("x1=%v", x1)
+	//lg.Debugf("x1=%v", x1)
 	x1 = (x1 * 3038) >> 16
-	lg.Debugf("x1=%v", x1)
+	//lg.Debugf("x1=%v", x1)
 	x2 = (-7357 * p1) >> 16
-	lg.Debugf("x2=%v", x2)
+	//lg.Debugf("x2=%v", x2)
 	p1 += (x1 + x2 + 3791) >> 4
-	lg.Debugf("p=%v", p1)
+	//lg.Debugf("p=%v", p1)
 	p := uint32(p1) * 10
 	return p, nil
 }
diff --git a/bmp280.go b/bmp280.go
index ec451f2..f44ee9d 100644
--- a/bmp280.go
+++ b/bmp280.go
@@ -246,7 +246,7 @@ func (v *SensorBMP280) IsBusy(i2c *i2c.I2C) (busy bool, err error) {
 		return false, err
 	}
 	b = b & 0x8
-	lg.Debugf("Busy flag=0x%0X", b)
+	//lg.Debugf("Busy flag=0x%0X", b)
 	return b != 0, nil
 }
 
@@ -353,12 +353,12 @@ func (v *SensorBMP280) ReadTemperatureMult100C(i2c *i2c.I2C, accuracy AccuracyMo
 	}
 
 	var1 := ((ut>>3 - int32(v.Coeff.dig_T1())<<1) * int32(v.Coeff.dig_T2())) >> 11
-	lg.Debugf("var1=%v", var1)
+	//lg.Debugf("var1=%v", var1)
 	var2 := (((ut>>4 - int32(v.Coeff.dig_T1())) * (ut>>4 - int32(v.Coeff.dig_T1()))) >> 12 *
 		int32(v.Coeff.dig_T3())) >> 14
-	lg.Debugf("var1=%v", var2)
+	//lg.Debugf("var1=%v", var2)
 	tFine := var1 + var2
-	lg.Debugf("t_fine=%v", tFine)
+	//lg.Debugf("t_fine=%v", tFine)
 	t := (tFine*5 + 128) >> 8
 	return t, nil
 }
@@ -370,7 +370,7 @@ func (v *SensorBMP280) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	if err != nil {
 		return 0, err
 	}
-	lg.Debugf("ut=%v, up=%v", ut, up)
+	//lg.Debugf("ut=%v, up=%v", ut, up)
 
 	err = v.ReadCoefficients(i2c)
 	if err != nil {
@@ -378,22 +378,22 @@ func (v *SensorBMP280) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	}
 
 	var01 := ((ut>>3 - int32(v.Coeff.dig_T1())<<1) * int32(v.Coeff.dig_T2())) >> 11
-	lg.Debugf("var01=%v", var01)
+	//lg.Debugf("var01=%v", var01)
 	var02 := (((ut>>4 - int32(v.Coeff.dig_T1())) * (ut>>4 - int32(v.Coeff.dig_T1()))) >> 12 *
 		int32(v.Coeff.dig_T3())) >> 14
-	lg.Debugf("var01=%v", var02)
+	//lg.Debugf("var01=%v", var02)
 	tFine := var01 + var02
 
 	var1 := int64(tFine) - 128000
-	lg.Debugf("var1=%v", var1)
+	//lg.Debugf("var1=%v", var1)
 	var2 := var1 * var1 * int64(v.Coeff.dig_P6())
-	lg.Debugf("var2=%v", var2)
+	//lg.Debugf("var2=%v", var2)
 	var2 += (var1 * int64(v.Coeff.dig_P5())) << 17
 	var2 += int64(v.Coeff.dig_P4()) << 35
-	lg.Debugf("var2=%v", var2)
+	//lg.Debugf("var2=%v", var2)
 	var1 = (var1*var1*int64(v.Coeff.dig_P3()))>>8 + (var1*int64(v.Coeff.dig_P2()))<<12
 	var1 = ((int64(1)<<47 + var1) * int64(v.Coeff.dig_P1())) >> 33
-	lg.Debugf("var1=%v", var1)
+	//lg.Debugf("var1=%v", var1)
 	if var1 == 0 {
 		return 0, nil
 	}
diff --git a/bmp388.go b/bmp388.go
index eb04e45..e6ad840 100644
--- a/bmp388.go
+++ b/bmp388.go
@@ -256,7 +256,7 @@ func (v *SensorBMP388) IsValidCoefficients() error {
 		err := errors.New("CoeffBMP388 struct does not build")
 		return err
 	}
-	lg.Debugf("PAR_T1:%v", v.Coeff.PAR_T1())
+	/*lg.Debugf("PAR_T1:%v", v.Coeff.PAR_T1())
 	lg.Debugf("PAR_T2:%v", v.Coeff.PAR_T2())
 	lg.Debugf("PAR_T3:%v", v.Coeff.PAR_T3())
 	lg.Debugf("PAR_P1:%v", v.Coeff.PAR_P1())
@@ -269,7 +269,7 @@ func (v *SensorBMP388) IsValidCoefficients() error {
 	lg.Debugf("PAR_P8:%v", v.Coeff.PAR_P8())
 	lg.Debugf("PAR_P9:%v", v.Coeff.PAR_P9())
 	lg.Debugf("PAR_P10:%v", v.Coeff.PAR_P10())
-	lg.Debugf("PAR_P11:%v", v.Coeff.PAR_P11())
+	lg.Debugf("PAR_P11:%v", v.Coeff.PAR_P11())*/
 	return nil
 }
 
@@ -298,7 +298,7 @@ func (v *SensorBMP388) IsBusy(i2c *i2c.I2C) (busy bool, err error) {
 	if err != nil {
 		return false, err
 	}
-	lg.Debugf("Busy flag=0x%0X", b)
+	//lg.Debugf("Busy flag=0x%0X", b)
 	b = b & 0x60 // ignore cmd done
 	return b == 0, nil
 }
@@ -340,7 +340,7 @@ func (v *SensorBMP388) readUncompTemprature(i2c *i2c.I2C, accuracy AccuracyMode)
 	}
 	// enable pres and temp measuremeent, start a measurment
 	var power byte = (BMP388_PWR_MODE_FORCED << 4) | 3 // enable pres, temp, FORCED operating mode
-	lg.Debugf("power=0x%0X", power)
+	//lg.Debugf("power=0x%0X", power)
 	err = i2c.WriteRegU8(BMP388_PWR_CTRL_REG, power)
 	if err != nil {
 		return 0, err
@@ -444,13 +444,13 @@ func (v *SensorBMP388) ReadTemperatureMult100C(i2c *i2c.I2C, accuracy AccuracyMo
 	partial_data5 := (int64(partial_data2*262144) + partial_data4)
 	partial_data6 := partial_data5 / 4294967269
 	t := int32(partial_data6 * 25 / 16384)
-	lg.Debugf("ut=%v", ut)
+	/*lg.Debugf("ut=%v", ut)
 	lg.Debugf("d1=%v ", partial_data1)
 	lg.Debugf("p_d2=%v ", partial_data2)
 	lg.Debugf("p_d3=%v ", partial_data3)
 	lg.Debugf("p_d4=%v ", partial_data4)
 	lg.Debugf("p_d5=%v ", partial_data5)
-	lg.Debugf("p_d6=%v ", partial_data6)
+	lg.Debugf("p_d6=%v ", partial_data6)*/
 	return t, nil
 
 }
@@ -462,7 +462,7 @@ func (v *SensorBMP388) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	if err != nil {
 		return 0, err
 	}
-	lg.Debugf("ut=%v, up=%v", ut, up)
+	//lg.Debugf("ut=%v, up=%v", ut, up)
 
 	err = v.ReadCoefficients(i2c)
 	if err != nil {
@@ -478,8 +478,8 @@ func (v *SensorBMP388) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	partial_data5_t := (int64(partial_data2_t*262144) + partial_data4_t)
 	partial_data6_t := partial_data5_t / 4294967269
 	t_lin := partial_data6_t
-	lg.Debugf("t_lin=%v", t_lin)
-	lg.Debugf("----------")
+	//lg.Debugf("t_lin=%v", t_lin)
+	//lg.Debugf("----------")
 
 	//  Compensate pressure - fixed point/integer arthmetic
 	//  taken form formulas written in github
@@ -490,24 +490,24 @@ func (v *SensorBMP388) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	partial_data5 := (int64(v.Coeff.PAR_P7()) * partial_data1) * 16
 	partial_data6 := (int64(v.Coeff.PAR_P6()) * t_lin) * 4194304
 	offset := (int64(v.Coeff.PAR_P5()) * 140737488355328) + partial_data4 + partial_data5 + partial_data6
-	lg.Debugf("partial_data1=%v", partial_data1)
+	/*lg.Debugf("partial_data1=%v", partial_data1)
 	lg.Debugf("partial_data2=%v", partial_data2)
 	lg.Debugf("partial_data3=%v", partial_data3)
 	lg.Debugf("partial_data4=%v", partial_data4)
 	lg.Debugf("partial_data5=%v", partial_data5)
 	lg.Debugf("partial_data6=%v", partial_data6)
 	lg.Debugf("offset=%v", offset)
-	lg.Debugf("----------")
+	lg.Debugf("----------")*/
 
 	partial_data2 = (int64(v.Coeff.PAR_P4()) * partial_data3) / 32
 	partial_data4 = (int64(v.Coeff.PAR_P3()) * partial_data1) * 4
 	partial_data5 = (int64(v.Coeff.PAR_P2()) - 16384) * t_lin * 2097152
 	sensitivity := ((int64(v.Coeff.PAR_P1()) - 16384) * 70368744177664) + partial_data2 + partial_data4 + partial_data5
-	lg.Debugf("partial_data2=%v", partial_data2)
+	/*lg.Debugf("partial_data2=%v", partial_data2)
 	lg.Debugf("partial_data4=%v", partial_data4)
 	lg.Debugf("partial_data5=%v", partial_data5)
 	lg.Debugf("sensitivity=%v", sensitivity)
-	lg.Debugf("----------")
+	lg.Debugf("----------")*/
 
 	partial_data1 = (sensitivity / 16777216) * int64(up)
 	partial_data2 = int64(v.Coeff.PAR_P10()) * t_lin
@@ -515,20 +515,20 @@ func (v *SensorBMP388) ReadPressureMult10Pa(i2c *i2c.I2C, accuracy AccuracyMode)
 	partial_data4 = (partial_data3 * int64(up)) / 8192
 	partial_data5 = (partial_data4 * int64(up)) / 512
 	partial_data6 = int64(uint64(up) * uint64(up))
-	lg.Debugf("----------")
+	/*lg.Debugf("----------")
 	lg.Debugf("partial_data1=%v", partial_data1)
 	lg.Debugf("partial_data2=%v", partial_data2)
 	lg.Debugf("partial_data3=%v", partial_data3)
 	lg.Debugf("partial_data4=%v", partial_data4)
 	lg.Debugf("partial_data5=%v", partial_data5)
 	lg.Debugf("partial_data6=%v", partial_data6)
-	lg.Debugf("----------")
+	lg.Debugf("----------")*/
 	partial_data2 = (int64(v.Coeff.PAR_P11()) * partial_data6) / 65536
 	partial_data3 = (partial_data2 * int64(up)) / 128
 	partial_data4 = (offset / 4) + partial_data1 + partial_data5 + partial_data3
-	lg.Debugf("partial_data2=%v", partial_data2)
-	lg.Debugf("partial_data3=%v", partial_data3)
-	lg.Debugf("partial_data4=%v", partial_data4)
+	//lg.Debugf("partial_data2=%v", partial_data2)
+	//lg.Debugf("partial_data3=%v", partial_data3)
+	//lg.Debugf("partial_data4=%v", partial_data4)
 	comp_press := uint32((uint64(partial_data4) * 25) / 1099511627776)
 
 	return comp_press, nil
diff --git a/examples/example1.go b/examples/example1.go
index ec557d5..aca75c1 100644
--- a/examples/example1.go
+++ b/examples/example1.go
@@ -1,18 +1,21 @@
 package main
 
 import (
+	"fmt"
+	lg "log"
+
 	"github.com/d2r2/go-bsbmp"
 	"github.com/d2r2/go-i2c"
-	logger "github.com/d2r2/go-logger"
+//	logger "github.com/d2r2/go-logger"
 )
 
-var lg = logger.NewPackageLogger("main",
-	logger.DebugLevel,
+//var lg = logger.NewPackageLogger("main",
+//	logger.DebugLevel,
 	// logger.InfoLevel,
-)
+//)
 
 func main() {
-	defer logger.FinalizeLogger()
+//	defer logger.FinalizeLogger()
 	// Create new connection to i2c-bus on 1 line with address 0x76.
 	// Use i2cdetect utility to find device address over the i2c-bus
 	i2c, err := i2c.NewI2C(0x76, 0)
@@ -21,13 +24,13 @@ func main() {
 	}
 	defer i2c.Close()
 
-	lg.Notify("***************************************************************************************************")
-	lg.Notify("*** You can change verbosity of output, to modify logging level of modules \"i2c\", \"bsbmp\"")
-	lg.Notify("*** Uncomment/comment corresponding lines with call to ChangePackageLogLevel(...)")
-	lg.Notify("***************************************************************************************************")
+	//lg.Notify("***************************************************************************************************")
+	//lg.Notify("*** You can change verbosity of output, to modify logging level of modules \"i2c\", \"bsbmp\"")
+	//lg.Notify("*** Uncomment/comment corresponding lines with call to ChangePackageLogLevel(...)")
+	//lg.Notify("***************************************************************************************************")
 	// Uncomment/comment next lines to suppress/increase verbosity of output
-	logger.ChangePackageLogLevel("i2c", logger.InfoLevel)
-	logger.ChangePackageLogLevel("bsbmp", logger.InfoLevel)
+	//logger.ChangePackageLogLevel("i2c", logger.InfoLevel)
+	//logger.ChangePackageLogLevel("bsbmp", logger.InfoLevel)
 
 	// sensor, err := bsbmp.NewBMP(bsbmp.BMP180, i2c) // signature=0x55
 	sensor, err := bsbmp.NewBMP(bsbmp.BMP280, i2c) // signature=0x58
@@ -41,7 +44,7 @@ func main() {
 	if err != nil {
 		lg.Fatal(err)
 	}
-	lg.Infof("This Bosch Sensortec sensor has signature: 0x%x", id)
+	fmt.Printf("This Bosch Sensortec sensor has signature: 0x%x", id)
 
 	err = sensor.IsValidCoefficients()
 	if err != nil {
@@ -53,21 +56,21 @@ func main() {
 	if err != nil {
 		lg.Fatal(err)
 	}
-	lg.Infof("Temprature = %v*C", t)
+	fmt.Printf("Temprature = %v*C", t)
 
 	// Read atmospheric pressure in pascal
 	p, err := sensor.ReadPressurePa(bsbmp.ACCURACY_LOW)
 	if err != nil {
 		lg.Fatal(err)
 	}
-	lg.Infof("Pressure = %v Pa", p)
+	fmt.Printf("Pressure = %v Pa", p)
 
 	// Read atmospheric pressure in mmHg
 	p, err = sensor.ReadPressureMmHg(bsbmp.ACCURACY_LOW)
 	if err != nil {
 		lg.Fatal(err)
 	}
-	lg.Infof("Pressure = %v mmHg", p)
+	fmt.Printf("Pressure = %v mmHg", p)
 
 	// Read atmospheric pressure in mmHg
 	supported, h1, err := sensor.ReadHumidityRH(bsbmp.ACCURACY_LOW)
@@ -75,7 +78,7 @@ func main() {
 		if err != nil {
 			lg.Fatal(err)
 		}
-		lg.Infof("Humidity = %v %%", h1)
+		fmt.Printf("Humidity = %v %%", h1)
 	}
 
 	// Read atmospheric altitude in meters above sea level, if we assume
@@ -84,5 +87,5 @@ func main() {
 	if err != nil {
 		lg.Fatal(err)
 	}
-	lg.Infof("Altitude = %v m", a)
+	fmt.Printf("Altitude = %v m", a)
 }
diff --git a/logger.go b/logger.go
index 5dcdc18..d80c1d2 100644
--- a/logger.go
+++ b/logger.go
@@ -1,10 +1,10 @@
 package bsbmp
 
-import logger "github.com/d2r2/go-logger"
+//import logger "github.com/d2r2/go-logger"
 
 // You can manage verbosity of log output
 // in the package by changing last parameter value.
-var lg = logger.NewPackageLogger("bsbmp",
-	logger.DebugLevel,
+//var lg = logger.NewPackageLogger("bsbmp",
+//	logger.DebugLevel,
 	// logger.InfoLevel,
-)
+//)
-- 
2.27.0

