mirror of
				https://github.com/amperka/TroykaMQ.git
				synced 2025-10-30 23:44:02 +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:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Igor89
					Igor89