Displaying 1 result from an estimated 1 matches for "ups_delay".
Did you mean:
  updelay
  
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...===================================================
--- a/drivers/victronups.c	2011-05-31 13:36:49.000000000 +0300
+++ b/drivers/victronups.c	2011-08-17 03:09:10.000000000 +0300
@@ -49,8 +49,8 @@ upsdrv_info_t upsdrv_info = {
 #define ENDCHAR	'\r'
 #define IGNCHARS "\n"
 
-#define UPS_DELAY 150000
-#define UPS_LONG_DELAY 450000
+#define UPS_DELAY 150e6
+#define UPS_LONG_DELAY 450e6
 
 #define VICTRON_OVER 128
 #define VICTRON_RB 1
@@ -86,7 +86,7 @@ static int get_data (const char *out_str
 {
 	int ret_code;
 	ser_send(upsfd, "%s%c", out_string, ENDCHAR);
-	usleep (UPS_DELAY)...