--- a/thermferm/simulator.c Thu May 14 22:03:35 2015 +0200 +++ b/thermferm/simulator.c Sat May 16 17:39:30 2015 +0200 @@ -29,6 +29,8 @@ extern int debug; extern sys_config Config; +int SIMcooling = 0; +int SIMheating = 0; #ifdef HAVE_WIRINGPI_H @@ -78,12 +80,18 @@ * the plate is warmer then the air, calculate the cooling down temperature. * Finally, calculate the new air and plate temperature. */ + if (SIMheating) { + simulator->air_temperature += 0.01; + } /* * If cooling, calculate temperature of the cooling plate. If cooling is off but * the plate is colder then the air, calculate the warming up temperature. * Finsally, calculate the new air and plate temperature. */ + if (SIMcooling) { + simulator->air_temperature -= 0.01; + } /* * Calculate the extra beer temperatur rise to simulate the heat produced by the