Merge pull request #2 from CAHEK7/debugOutput

hide debug output under '#define MQDEBUG' macro (fix for issue #1)
This commit is contained in:
Igor89 2016-09-16 17:08:48 +03:00 committed by GitHub
commit 13129683df

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();