From 493f52ab6b7d7479df6b5231a20063a9c711ebbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 17 Aug 2018 17:41:11 +0200 Subject: [PATCH] Fix undefined constants --- code/espurna/nofuss.ino | 2 +- code/espurna/sensor.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/nofuss.ino b/code/espurna/nofuss.ino index 641eeb5e..e96d44d0 100644 --- a/code/espurna/nofuss.ino +++ b/code/espurna/nofuss.ino @@ -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); diff --git a/code/espurna/sensor.ino b/code/espurna/sensor.ino index 97ddc5c7..9da103c6 100644 --- a/code/espurna/sensor.ino +++ b/code/espurna/sensor.ino @@ -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