From fc344c9565f2c8742053f01fbc131914dccbfab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sun, 11 Dec 2016 19:09:24 +0100 Subject: [PATCH] Added relayStatus function prototype to fix issue #11 --- code/src/main.ino | 1 + code/src/relay.ino | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/src/main.ino b/code/src/main.ino index 31fde97b..e0dd71e6 100644 --- a/code/src/main.ino +++ b/code/src/main.ino @@ -30,6 +30,7 @@ along with this program. If not, see . #include #include "FS.h" String getSetting(const String& key, String defaultValue = ""); +bool relayStatus(unsigned char id, bool status, bool report = true); // ----------------------------------------------------------------------------- // METHODS diff --git a/code/src/relay.ino b/code/src/relay.ino index f6fdb61b..a27a4df2 100644 --- a/code/src/relay.ino +++ b/code/src/relay.ino @@ -58,7 +58,7 @@ bool relayStatus(unsigned char id) { #endif } -bool relayStatus(unsigned char id, bool status, bool report = true) { +bool relayStatus(unsigned char id, bool status, bool report) { bool changed = false;