diff -r bfab45f4d5cd -r a28ef4d9afa4 thermferm/simulator.c --- 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);