From e699c8b37b7fc64a2ef3e1ac62a2fb162374cc3d Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Fri, 4 Nov 2022 08:37:53 +0100 Subject: [PATCH] Fixed debug output in dmp280 sensor code and removed unused function. --- firmware/sensor_bmp280.ino | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/firmware/sensor_bmp280.ino b/firmware/sensor_bmp280.ino index 562defb..f44acb2 100644 --- a/firmware/sensor_bmp280.ino +++ b/firmware/sensor_bmp280.ino @@ -21,10 +21,10 @@ bool sensor_bmp280_begin(uint8_t addr) } else { debug("Could not find a valid BMP280 sensor, check wiring or try a different address!"); debug("SensorID was: " + String(_sensor_bmp280.sensorID())); - debug(" ID of 0xFF probably means a bad address, a BMP 180 or BMP 085\n"); - debug(" ID of 0x56-0x58 represents a BMP 280,\n"); - debug(" ID of 0x60 represents a BME 280.\n"); - debug(" ID of 0x61 represents a BME 680.\n"); + debug(" ID of 0xFF probably means a bad address, a BMP180 or BMP085"); + debug(" ID of 0x56-0x58 represents a BMP280,"); + debug(" ID of 0x60 represents a BME280,"); + debug(" ID of 0x61 represents a BME680."); } @@ -44,8 +44,3 @@ float bmp280_pressure() _sensor_bmp280_pressure->getEvent(&pressure_event); return pressure_event.pressure; } - -float bmp280_humidity() -{ - return 0 * HUMIDITY_FACTOR; -}