# HG changeset patch # User Michiel Broek # Date 1408830191 -7200 # Node ID 93c1f91adaa73fc3a421a7215b907be03d61cb79 # Parent d0014ccec61555d0581bdb4140e169fc65f3cc9b Fixed stdout debug messages diff -r d0014ccec615 -r 93c1f91adaa7 thermferm/simulator.c --- 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); /*