Browse Source

Show message in debug log if no magnitude found for a given sensor

fastled
Xose Pérez 7 years ago
parent
commit
c416b9ad3d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/sensor.ino

+ 1
- 0
code/espurna/sensor.ino View File

@ -352,6 +352,7 @@ void sensorSetup() {
BaseSensor * sensor = _sensors[i]; BaseSensor * sensor = _sensors[i];
DEBUG_MSG("[SENSOR] %s\n", sensor->name().c_str()); DEBUG_MSG("[SENSOR] %s\n", sensor->name().c_str());
if (sensor->count() == 0) DEBUG_MSG("[SENSOR] -> NOTHING FOUND\n");
for (unsigned char k=0; k<sensor->count(); k++) { for (unsigned char k=0; k<sensor->count(); k++) {


Loading…
Cancel
Save