thermferm/devices.c

changeset 652
16d3d4b58b5b
parent 650
0b215e4b814e
child 654
e981d0185485
equal deleted inserted replaced
651:da166cb8470f 652:16d3d4b58b5b
19 * along with thermferm; see the file COPYING. If not, write to the Free 19 * along with thermferm; see the file COPYING. If not, write to the Free
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 *****************************************************************************/ 21 *****************************************************************************/
22 22
23 #include "thermferm.h" 23 #include "thermferm.h"
24 #include "delay.h"
24 #include "devices.h" 25 #include "devices.h"
25 #include "rc-switch.h" 26 #include "rc-switch.h"
26 #include "panel.h" 27 #include "panel.h"
27 #include "xutil.h" 28 #include "xutil.h"
28 29
994 } 995 }
995 996
996 /* 997 /*
997 * Delay a bit after procesing a device. 998 * Delay a bit after procesing a device.
998 */ 999 */
999 usleep(10000); 1000 mDelay(10);
1000 } 1001 }
1001 if (my_shutdown) 1002 if (my_shutdown)
1002 break; 1003 break;
1003 /* 1004 /*
1004 * Delay a bit after all devices 1005 * Delay a bit after all devices
1005 */ 1006 */
1006 usleep(100000); 1007 mDelay(100);
1007 } 1008 }
1008 1009
1009 syslog(LOG_NOTICE, "Thread my_devices_loop stopped"); 1010 syslog(LOG_NOTICE, "Thread my_devices_loop stopped");
1010 my_devices_state = 0; 1011 my_devices_state = 0;
1011 return 0; 1012 return 0;

mercurial