}
iqform = buffer[39]; if (iqform == 0) iqform=3;
- if (iqform != 3 || !run) fprintf(stderr,"GP: Wrong IQ Format requested: %d\n",iqform);
+ if (iqform != 3) fprintf(stderr,"GP: Wrong IQ Format requested: %d\n",iqform);
rc = (buffer[58] & 0x01);
if (rc != pa_enable || !run) {
pthread_join(mic_thread_id, NULL);
pthread_join(audio_thread_id, NULL);
highprio_thread_id=0;
+ fprintf(stderr,"HP thread terminated.\n");
+ close(sock);
return NULL;
}
}
rxatt0_dbl=pow(10.0, -0.05*(stepatt0+10*alex0[14]+20*alex0[13]));
}
}
+ close(sock);
return NULL;
}
if (bind(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
perror("***** ERROR: RXthread: bind");
+ close(sock);
return NULL;
}
if (rxptr < 0) rxptr += NEWRTXLEN;
divptr=0;
while (run) {
- if (!ddcenable[myddc] || rxrate[myddc] == 0 || rxfreq[myddc] == 0) {
+ if (ddcenable[myddc] <= 0 || rxrate[myddc] == 0 || rxfreq[myddc] == 0) {
usleep(5000);
clock_gettime(CLOCK_MONOTONIC, &delay);
rxptr=txptr-4096;
if (bind(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
perror("***** ERROR: TX: bind");
+ close(sock);
return NULL;
}
if (bind(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
perror("***** ERROR: SendHighPrio thread: bind");
+ close(sock);
return NULL;
}
if (bind(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
perror("***** ERROR: Audio: bind");
+ close(sock);
return NULL;
}
if (bind(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
perror("***** ERROR: Mic thread: bind");
+ close(sock);
return NULL;
}