mirror of
https://github.com/amperka/TroykaMQ.git
synced 2025-03-15 04:27:34 +03:00
Merge pull request #2 from CAHEK7/debugOutput
hide debug output under '#define MQDEBUG' macro (fix for issue #1)
This commit is contained in:
commit
13129683df
@ -96,13 +96,17 @@ void BaseMQ::cycleHeat() {
|
|||||||
_heater = false;
|
_heater = false;
|
||||||
_cooler = false;
|
_cooler = false;
|
||||||
heaterPwrHigh();
|
heaterPwrHigh();
|
||||||
|
#ifdef MQDEBUG
|
||||||
Serial.println("Heated sensor");
|
Serial.println("Heated sensor");
|
||||||
|
#endif //MQDEBUG
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BaseMQ::atHeatCycleEnd() {
|
bool BaseMQ::atHeatCycleEnd() {
|
||||||
if (heatingCompleted()) {
|
if (heatingCompleted()) {
|
||||||
heaterPwrLow();
|
heaterPwrLow();
|
||||||
|
#ifdef MQDEBUG
|
||||||
Serial.println("Cool sensor");
|
Serial.println("Cool sensor");
|
||||||
|
#endif //MQDEBUG
|
||||||
return false;
|
return false;
|
||||||
} else if (coolanceCompleted()) {
|
} else if (coolanceCompleted()) {
|
||||||
heaterPwrOff();
|
heaterPwrOff();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user