hide debug output under '#define MQDEBUG' macro (fix for issue #1)

This commit is contained in:
CAHEK7 2016-08-26 13:37:16 +03:00
parent a0b4fa0752
commit 5a431ba032

View File

@ -96,13 +96,17 @@ void BaseMQ::cycleHeat() {
_heater = false;
_cooler = false;
heaterPwrHigh();
#ifdef MQDEBUG
Serial.println("Heated sensor");
#endif //MQDEBUG
}
bool BaseMQ::atHeatCycleEnd() {
if (heatingCompleted()) {
heaterPwrLow();
#ifdef MQDEBUG
Serial.println("Cool sensor");
#endif //MQDEBUG
return false;
} else if (coolanceCompleted()) {
heaterPwrOff();