Browse Source

Added relayStatus function prototype to fix issue #11

fastled
Xose Pérez 8 years ago
parent
commit
fc344c9565
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      code/src/main.ino
  2. +1
    -1
      code/src/relay.ino

+ 1
- 0
code/src/main.ino View File

@ -30,6 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <AsyncMqttClient.h> #include <AsyncMqttClient.h>
#include "FS.h" #include "FS.h"
String getSetting(const String& key, String defaultValue = ""); String getSetting(const String& key, String defaultValue = "");
bool relayStatus(unsigned char id, bool status, bool report = true);
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// METHODS // METHODS


+ 1
- 1
code/src/relay.ino View File

@ -58,7 +58,7 @@ bool relayStatus(unsigned char id) {
#endif #endif
} }
bool relayStatus(unsigned char id, bool status, bool report = true) {
bool relayStatus(unsigned char id, bool status, bool report) {
bool changed = false; bool changed = false;


Loading…
Cancel
Save