Displaying 1 result from an estimated 1 matches for "mge_connect_delay".
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...================================================
--- a/drivers/mge-utalk.c 2011-05-31 13:36:49.000000000 +0300
+++ b/drivers/mge-utalk.c 2011-08-17 03:26:12.000000000 +0300
@@ -89,7 +89,7 @@ upsdrv_info_t upsdrv_info = {
#define MGE_REPLY_DELAY 1000
/* delay after enable_ups_comm */
-#define MGE_CONNECT_DELAY 500000
+#define MGE_CONNECT_DELAY 500e6
#define MGE_COMMAND_ENDCHAR "\r\n" /* some UPS need \r and \n */
#define MGE_REPLY_ENDCHAR '\r'
@@ -644,7 +644,7 @@ static void disable_ups_comm(void)
{
upsdebugx(1, "disable_ups_comm()");
ser_flush_in(upsfd, "?\r...