bugfixes: keyboard off mode, killswitch off mode

This commit is contained in:
root 2014-04-02 03:04:16 +02:00
parent 34113c63da
commit ceb1edb67b
9 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
<stdio.h>
<inttypes.h>
1396204130 source:/home/chch/HengLongUDPclient/main.c
1396399727 source:/home/chch/HengLongUDPclient/main.c
<pthread.h>
<stdio.h>
<stdlib.h>
@ -176,7 +176,7 @@
1395878369 source:/home/chch/HengLongUDPclient/checkvideo.c
"checkvideo.h"
1396204073 source:/home/chch/HengLongUDPclient/checkkillswitch.c
1396205007 source:/home/chch/HengLongUDPclient/checkkillswitch.c
"checkkillswitch.h"
1396202748 /home/chch/HengLongUDPclient/checkkillswitch.h

Binary file not shown.

Binary file not shown.

View File

@ -52,7 +52,7 @@ int checkkillswitch(char* ip, uint16_t port, char* url)
{
char rb[1024];
int n;
if(0==ip[0]) return 0;
if(0==ip[0]) return 1;
getPage(ip, port, url, rb, sizeof(rb));
n = strstr(rb, "true");
if(NULL != n) return 1;

2
main.c
View File

@ -541,7 +541,7 @@ int main(int argc, char* argv[])
n_send = sendto(sockfd, &senddata, sizeof(senddata), 0, (struct sockaddr *)&servaddr, sizeof(servaddr));
printf("SEND FRAME -- FRM_NBR: %5d, BYTES send: %3d, SEND_FRM: %#x, CLINBR: %d, CLISEL: %d, SERVOFF: %d\n", frame_nbr, n_send, frame, senddata.clinbr, senddata.clisel, senddata.servoff);
if(pthread_kill(keybthread, 0)) break;
if(keyboard_thread_args.filename[0]) if(pthread_kill(keybthread, 0)) break;
}
return 0;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.