@@ -196,7 +196,7 @@ static void function1 (struct _file_ * port, char const * units, unsigned wait,
196196 {
197197 error (1 , errno , FILE_CANTSAVE , port -> name );
198198 }
199- SLEEP (wait );
199+ SLEEP_MS (wait );
200200 }
201201 return ;
202202}
@@ -234,7 +234,7 @@ static void function2 (struct _file_ * port, char const * units, unsigned wait,
234234 {
235235 error (1 , errno , FILE_CANTSAVE , port -> name );
236236 }
237- SLEEP (wait );
237+ SLEEP_MS (wait );
238238 }
239239 return ;
240240}
@@ -265,14 +265,14 @@ static void function3 (struct _file_ * port, char const * units, unsigned wait)
265265 {
266266 error (1 , errno , FILE_CANTSAVE , port -> name );
267267 }
268- SLEEP (wait );
268+ SLEEP_MS (wait );
269269 memset (buffer , 0 , sizeof (buffer ));
270270 if (read (port -> file , buffer , PTSCTL_LEDS + 2 ) == -1 )
271271 {
272272 error (1 , errno , FILE_CANTREAD , port -> name );
273273 }
274274 memcpy (& string [offset ], & buffer [1 ], PTSCTL_LEDS );
275- SLEEP (wait );
275+ SLEEP_MS (wait );
276276 }
277277 cycle (string , PTSCTL_LEDS , 2 );
278278 while (-- offset > PTSCTL_BITS )
@@ -310,7 +310,7 @@ static void function4 (struct _file_ * port, char const * units, unsigned wait)
310310 {
311311 function2 (port , units , wait , (value << 8 ) | (value << 1 ) | 1 );
312312 function3 (port , units , wait );
313- SLEEP (wait );
313+ SLEEP_MS (wait );
314314 }
315315 return ;
316316}
0 commit comments