set client LED flash time to 5 sec
@@ -3811,9 +3811,9 @@ while(1)
}
}
oldincommingcount1 = incommingcount;
+ statuscount++;
tvfd.tv_sec = 1;
tvfd.tv_usec = 0;
- statuscount++;
continue;
}
packet_ptr = &epb[EPB_SIZE];
@@ -4211,9 +4211,9 @@ while(1)
globalclose();
}
}
+ statuscount++;
tvfd.tv_sec = 1;
tvfd.tv_usec = 0;
- statuscount++;
continue;
}
if(packet_len < (int)RTH_SIZE +(int)MAC_SIZE_NORM)
@@ -4759,9 +4759,11 @@ static inline void processclient()
static fd_set readfds;
static struct timeval tvfd;
static int fdnum;
+static unsigned long long int statuscount;
static char serverstatus[SERVERSTATUSSIZE];
+statuscount = 1;
tvfd.tv_sec = 1;
tvfd.tv_usec = 0;
while(1)
@@ -4790,6 +4792,8 @@ while(1)
printf("%s\n", serverstatus);
}
else
+ {
+ if((statuscount %5) == 0)
{
if(gpiostatusled > 0)
{
@@ -4797,6 +4801,8 @@ while(1)
nanosleep(&sleepled, NULL);
GPIO_CLR = 1 << gpiostatusled;
}
+ }
+ statuscount++;
tvfd.tv_sec = 1;
tvfd.tv_usec = 0;
}
