Browse Source

Fix undefined constants

v2
Xose Pérez 6 years ago
parent
commit
493f52ab6b
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      code/espurna/nofuss.ino
  2. +1
    -1
      code/espurna/sensor.ino

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

@ -53,7 +53,7 @@ void _nofussConfigure() {
} else {
char buffer[20];
snprintf_P(buffer, sizeof(buffer), PSTR("%s-%s"), APP_NAME, DEVICE);
snprintf_P(buffer, sizeof(buffer), PSTR("%s-%s"), APP_NAME, getDevice());
NoFUSSClient.setServer(nofussServer);
NoFUSSClient.setDevice(buffer);


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

@ -507,7 +507,7 @@ void _sensorLoad() {
sensor->setEcho(getSetting("sonEcho", SONAR_ECHO).toInt());
sensor->setTrigger(getSetting("sonTrigger", SONAR_TRIGGER).toInt());
sensor->setIterations(getSetting("sonIterations", SONAR_ITERATIONS).toInt());
sensor->setMaxDistance(getSetting("sonMaxDist", SONAR_MAX_DISTANCE0).toInt());
sensor->setMaxDistance(getSetting("sonMaxDist", SONAR_MAX_DISTANCE).toInt());
_sensors.push_back(sensor);
}
#endif


Loading…
Cancel
Save