Displaying 1 result from an estimated 1 matches for "serial_read".
2011 Oct 03
0
patch: Fix [-Wunused-but-set-variable]
...3:22.000000000 +0300
@@ -796,7 +796,6 @@ int shut_packet_recv (u_char *Buf, int d
u_short Pos=0;
u_char Retry=0;
int recv;
- shut_data_t sdata;
upsdebugx (4, "entering shut_packet_recv (%i)", datalen);
@@ -804,7 +803,6 @@ int shut_packet_recv (u_char *Buf, int d
{
if(serial_read (DEFAULT_TIMEOUT, &Start[0]) >= 0)
{
- sdata.shut_pkt.bType = Start[0];
if(Start[0]==SHUT_SYNC)
{
upsdebugx (4, "received SYNC token");
@@ -819,7 +817,6 @@ int shut_packet_recv (u_char *Buf, int d
{
upsdebug_hex(3, "Receive", Start, 2);...