From eef1138b20176668ffb6d5b81251484694b9199d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Tue, 17 Apr 2018 12:55:29 +0200 Subject: [PATCH] Remove unneeded code --- code/espurna/sensors/DallasSensor.h | 9 --------- code/espurna/sensors/EmonADS1X15Sensor.h | 4 ---- 2 files changed, 13 deletions(-) diff --git a/code/espurna/sensors/DallasSensor.h b/code/espurna/sensors/DallasSensor.h index e5dbba11..16f70e37 100644 --- a/code/espurna/sensors/DallasSensor.h +++ b/code/espurna/sensors/DallasSensor.h @@ -133,15 +133,6 @@ class DallasSensor : public BaseSensor { data[i] = _wire->read(); } - #if false - Serial.printf("[DS18B20] Data = "); - for (unsigned char i = 0; i < DS_DATA_SIZE; i++) { - Serial.printf("%02X ", data[i]); - } - Serial.printf(" CRC = %02X\n", OneWire::crc8(data, DS_DATA_SIZE-1)); - #endif - - if (_wire->reset() != 1) { // Force a CRC check error _devices[index].data[0] = _devices[index].data[0] + 1; diff --git a/code/espurna/sensors/EmonADS1X15Sensor.h b/code/espurna/sensors/EmonADS1X15Sensor.h index 56bbb164..d24472d1 100644 --- a/code/espurna/sensors/EmonADS1X15Sensor.h +++ b/code/espurna/sensors/EmonADS1X15Sensor.h @@ -301,10 +301,6 @@ class EmonADS1X15Sensor : public EmonSensor { } config |= ((channel + 4) << 12); // Set single-ended input channel (0x4000 - 0x7000) - #if SENSOR_DEBUG - //Serial.printf("[EMON] ADS1X115 Config Registry: %04X\n", config); - #endif - // Write config register to the ADC i2c_write_uint16(_address, ADS1X15_REG_POINTER_CONFIG, config);