mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
lpc2list: remove deprecated functions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
--- a/lpc21isp.c
|
||||
+++ b/lpc21isp.c
|
||||
@@ -1130,7 +1130,8 @@ void ClearSerialPortBuffers(ISP_ENVIRONMENT *IspEnvironment)
|
||||
*/
|
||||
void Sleep(unsigned long MilliSeconds)
|
||||
{
|
||||
- usleep(MilliSeconds*1000); //convert to microseconds
|
||||
+ struct timespec m = { MilliSeconds / 1000 , (MilliSeconds % 1000 ) * 1000 * 1000};
|
||||
+ nanosleep(&m, &m); //convert to nanoseconds
|
||||
}
|
||||
#endif // defined COMPILE_FOR_LINUX
|
||||
|
||||
Reference in New Issue
Block a user