Made "Inclusion started by button" a DEBUG message

In other words, the message will only be printed if DEBUG flag is enabled.
This commit is contained in:
Patrick Fallberg
2015-03-16 23:15:55 +01:00
parent 70eac0423d
commit 6fd26880a2
2 changed files with 4 additions and 0 deletions
@@ -91,7 +91,9 @@ void checkButtonTriggeredInclusion() {
if (buttonTriggeredInclusion) {
// Ok, someone pressed the inclusion button on the gateway
// start inclusion mode for 1 munute.
#ifdef DEBUG
serial(PSTR("0;0;%d;0;%d;Inclusion started by button.\n"), C_INTERNAL, I_LOG_MESSAGE);
#endif
buttonTriggeredInclusion = false;
setInclusionMode(true);
}
@@ -91,7 +91,9 @@ void checkButtonTriggeredInclusion() {
if (buttonTriggeredInclusion) {
// Ok, someone pressed the inclusion button on the gateway
// start inclusion mode for 1 munute.
#ifdef DEBUG
serial(PSTR("0;0;%d;0;%d;Inclusion started by button.\n"), C_INTERNAL, I_LOG_MESSAGE);
#endif
buttonTriggeredInclusion = false;
setInclusionMode(true);
}