Fixed stdout debug messages

Sat, 23 Aug 2014 23:43:11 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 23 Aug 2014 23:43:11 +0200
changeset 263
93c1f91adaa7
parent 262
d0014ccec615
child 264
91c358556ecf

Fixed stdout debug messages

thermferm/simulator.c file | annotate | diff | comparison | revisions
--- a/thermferm/simulator.c	Sat Aug 23 23:38:18 2014 +0200
+++ b/thermferm/simulator.c	Sat Aug 23 23:43:11 2014 +0200
@@ -75,7 +75,8 @@
 		else
 		    t_change = 0.0;
 		simulator->air_temperature = simulator->air_temperature + t_change;
-		fprintf(stdout, "room_air=%f room=%f air=%.15f heat_transfer=%f t_change=%.15f\n", 
+		if (debug)
+		    fprintf(stdout, "room_air=%f room=%f air=%.15f heat_transfer=%f t_change=%.15f\n", 
 				sqm_room_air, simulator->room_temperature, simulator->air_temperature, heat_transfer, t_change);
 
 	    	/*

mercurial