search for: 500e3

Displaying 1 result from an estimated 1 matches for "500e3".

Did you mean: 5003
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...=========================================================== --- a/drivers/rhino.c 2011-08-17 00:40:17.000000000 +0300 +++ b/drivers/rhino.c 2011-08-17 00:40:17.000000000 +0300 @@ -46,7 +46,7 @@ upsdrv_info_t upsdrv_info = { { NULL } }; -#define UPSDELAY 500 /* 0.5 ms delay */ +#define UPSDELAY 500e3 /* 500e3 ns delay */ typedef int bool_t; @@ -514,10 +514,10 @@ send_command( int cmd ) for(i=0; i < 19; i++) { ret = ser_send_char( upsfd, psend[i] ); - /* usleep ( UPSDELAY ); sending without delay */ + /* sending without delay */ } - usleep( UPSDELAY ); /*...