thermferm/simulator.c

changeset 660
a28ef4d9afa4
parent 652
16d3d4b58b5b
child 714
24749c296a50
--- a/thermferm/simulator.c	Wed Apr 03 19:33:38 2024 +0200
+++ b/thermferm/simulator.c	Fri Apr 05 16:19:39 2024 +0200
@@ -28,9 +28,9 @@
 
 #ifdef USE_SIMULATOR
 
-extern int		my_shutdown;
 extern sys_config	Config;
 
+int			my_simulator_shutdown = 0;
 int			SIMcooling = 0;
 int			SIMheating = 0;
 int			SIMfan = 0;
@@ -56,11 +56,11 @@
     }
 
     for (;;) {
-	if (my_shutdown)
+	if (my_simulator_shutdown)
 	    break;
 
 	for (simulator = Config.simulators; simulator; simulator = simulator->next) {
-	    if (my_shutdown)
+	    if (my_simulator_shutdown)
 	    	break;
 
 	    now = time(NULL);

mercurial