Displaying 1 result from an estimated 1 matches for "confups".
2011 Oct 03
0
patch: Fix [-Wunused-but-set-variable]
...buf(upsfd, Tmp, Len+3) ; /* send data to the UPS */
}
Index: b/drivers/solis.c
===================================================================
--- a/drivers/solis.c 2011-05-31 13:36:49.000000000 +0300
+++ b/drivers/solis.c 2011-08-17 00:23:22.000000000 +0300
@@ -320,7 +320,6 @@ static void confups( void )
{
int i, chks = 0;
- unsigned char tst;
ConfigPack[0] = 0xCF;
ConfigPack[1] = ihour;
@@ -339,7 +338,10 @@ static void confups( void )
/* MSB zero */
ConfigPack[10] = ConfigPack[10] & (~(0x80));
- tst = ConfigPack[10];
+ /*
+ unsigned char tst;
+ tst = ConfigPack...