Browse Source

Small changes

fastled
Xose Pérez 7 years ago
parent
commit
97b43cd357
4 changed files with 3 additions and 16 deletions
  1. +1
    -1
      code/espurna/config/general.h
  2. +1
    -0
      code/espurna/config/sensors.h
  3. +1
    -1
      code/espurna/i2c.ino
  4. +0
    -14
      code/espurna/web.ino

+ 1
- 1
code/espurna/config/general.h View File

@ -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


+ 1
- 0
code/espurna/config/sensors.h View File

@ -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


+ 1
- 1
code/espurna/i2c.ino View File

@ -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);
}
}


+ 0
- 14
code/espurna/web.ino View File

@ -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();


Loading…
Cancel
Save