diff -r da166cb8470f -r 16d3d4b58b5b thermferm/devices.c --- a/thermferm/devices.c Wed Mar 27 15:49:31 2024 +0100 +++ b/thermferm/devices.c Wed Mar 27 17:19:46 2024 +0100 @@ -21,6 +21,7 @@ *****************************************************************************/ #include "thermferm.h" +#include "delay.h" #include "devices.h" #include "rc-switch.h" #include "panel.h" @@ -996,14 +997,14 @@ /* * Delay a bit after procesing a device. */ - usleep(10000); + mDelay(10); } if (my_shutdown) break; /* * Delay a bit after all devices */ - usleep(100000); + mDelay(100); } syslog(LOG_NOTICE, "Thread my_devices_loop stopped");