diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index 9e74da17..63d53a38 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -127,7 +127,7 @@ // I2C // ----------------------------------------------------------------------------- -#define ENABLE_I2C 1 +#define ENABLE_I2C 0 #define I2C_SDA_PIN 4 #define I2C_SCL_PIN 14 #define I2C_CLOCK_STRETCH_TIME 200 diff --git a/code/espurna/config/sensors.h b/code/espurna/config/sensors.h index 36a57ea3..b1de178f 100644 --- a/code/espurna/config/sensors.h +++ b/code/espurna/config/sensors.h @@ -44,6 +44,7 @@ #define EMON_ANALOG_PROVIDER 0 #define EMON_ADC121_PROVIDER 1 +// If you select EMON_ADC121_PROVIDER you need to enable and configure I2C in general.h #define EMON_PROVIDER EMON_ANALOG_PROVIDER #if EMON_PROVIDER == EMON_ANALOG_PROVIDER diff --git a/code/espurna/i2c.ino b/code/espurna/i2c.ino index 1063d143..9bdf60ab 100644 --- a/code/espurna/i2c.ino +++ b/code/espurna/i2c.ino @@ -27,7 +27,7 @@ void i2cScan() { Serial.printf("[I2C] Device found at address 0x%02X\n", address); nDevices++; } else if (response != 32) { - Serial.printf("[I2C] Unknown error at address 0x%02X\n", address); + //Serial.printf("[I2C] Unknown error at address 0x%02X\n", address); } } diff --git a/code/espurna/web.ino b/code/espurna/web.ino index 6dc65f2c..398da69b 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -639,20 +639,6 @@ void _onRPC(AsyncWebServerRequest *request) { void _onHome(AsyncWebServerRequest *request) { - DEBUG_MSG("[DEBUG] Free heap: %d bytes\n", ESP.getFreeHeap()); - - FSInfo fs_info; - if (SPIFFS.info(fs_info)) { - DEBUG_MSG("[DEBUG] File system total size: %d bytes\n", fs_info.totalBytes); - DEBUG_MSG(" used size : %d bytes\n", fs_info.usedBytes); - DEBUG_MSG(" block size: %d bytes\n", fs_info.blockSize); - DEBUG_MSG(" page size : %d bytes\n", fs_info.pageSize); - DEBUG_MSG(" max files : %d\n", fs_info.maxOpenFiles); - DEBUG_MSG(" max length: %d\n", fs_info.maxPathLength); - } else { - DEBUG_MSG("[DEBUG] Error, FS not accesible!\n"); - } - webLogRequest(request); if (!_authenticate(request)) return request->requestAuthentication();