# HG changeset patch # User Michiel Broek # Date 1557415258 -7200 # Node ID d7342a8e7f4d9e166d53f058aa40c37a4bd99cb6 # Parent 1904badedf8f1510ae6fba777d31eb4106e2c489 Removed simulator debug support diff -r 1904badedf8f -r d7342a8e7f4d thermferm/simulator.c --- a/thermferm/simulator.c Thu May 09 17:16:49 2019 +0200 +++ b/thermferm/simulator.c Thu May 09 17:20:58 2019 +0200 @@ -26,7 +26,6 @@ #ifdef USE_SIMULATOR extern int my_shutdown; -extern int debug; extern sys_config Config; int SIMcooling = 0; @@ -125,14 +124,6 @@ simulator->beer_temperature += ((simulator->air_temperature - simulator->beer_temperature) / 500.0); simulator->air_temperature += ((simulator->beer_temperature - simulator->air_temperature) / 2500.0); simulator->chiller_temperature = simulator->cooler_temp; // Libk these - -// if ((seconds % 15) == 0) -// syslog(LOG_NOTICE, "air=%.3f beer=%.3f heater=%.3f cooler=%.3f", simulator->air_temperature, simulator->beer_temperature, -// simulator->s_heat_temp, simulator->s_cool_temp); - -// if (debug) -// fprintf(stdout, "sqm_room_air=%f air=%f air_heat_transfer=%f air_change=%f beer=%f\n", -// sqm_room_air, simulator->air_temperature, air_heat_transfer, air_change, simulator->beer_temperature); } usleep(100000); }