[Nut-upsdev] tripplitesu driver fix
    upsd at leekillough.com 
    upsd at leekillough.com
       
    Mon Oct  3 08:37:20 UTC 2005
    
    
  
The 2.0.2+ tripplitesu drivers do not recognize SmartOnLine SU2200XL and
possibly other SmartOnLine UPSes.
Here is a one-line fix.
Lee
--- ../nut-2.0.2/drivers/tripplitesu.c	Thu Jan 27 08:33:21 2005
+++ drivers/tripplitesu.c	Sat Oct  1 13:38:51 2005
@@ -227,7 +227,7 @@
 	buffer[4] = '\0';
 
 	if (!strcmp(buffer, "~00D")) {
-		if (ser_get_buf_len(upsfd, buffer, 4, 3, 0) <= 0)
+		if (ser_get_buf_len(upsfd, buffer, 3, 3, 0) <= 0)
 			return -1;
 		buffer[3] = '\0';
 		count = atoi(buffer);
    
    
More information about the Nut-upsdev
mailing list