mirror of https://github.com/wb2osz/direwolf.git
Misc fixes for upstream #20.
Bug fix for reading config files, a number of warning fixes, and a fix that allows Clang to be used to compile direwolf. modified: .gitignore modified: Makefile.linux modified: aclients.c modified: audio.c modified: config.c modified: demod_afsk.c modified: dwgpsd.c modified: igate.c modified: kiss.c modified: kissnet.c modified: ttcalc.c
This commit is contained in:
parent
12cb9108d7
commit
d491f51ce9
|
@ -6,9 +6,7 @@ z*
|
|||
*~
|
||||
*.xlsx
|
||||
*.stackdump
|
||||
direwolf.conf
|
||||
*.wav
|
||||
fsk_fast_filter.h
|
||||
|
||||
|
||||
# Object files
|
||||
|
@ -41,6 +39,26 @@ fsk_fast_filter.h
|
|||
*.x86_64
|
||||
*.hex
|
||||
|
||||
# Binaries, other build results
|
||||
|
||||
aclients
|
||||
atest
|
||||
decode_aprs
|
||||
direwolf
|
||||
gen_fff
|
||||
gen_packets
|
||||
ll2utm
|
||||
log2gpx
|
||||
text2tt
|
||||
tt2text
|
||||
ttcalc
|
||||
utm2ll
|
||||
|
||||
direwolf.conf
|
||||
fsk_fast_filter.h
|
||||
direwolf.desktop
|
||||
|
||||
|
||||
# =========================
|
||||
# Operating System Files
|
||||
# =========================
|
||||
|
|
|
@ -327,10 +327,10 @@ gen_packets : gen_packets.c ax25_pad.c hdlc_send.c fcs_calc.c gen_tone.c morse.c
|
|||
|
||||
# Unit test for AFSK demodulator
|
||||
|
||||
atest : atest.c fsk_fast_filter.h demod.c demod_afsk.c demod_9600.c \
|
||||
dsp.o hdlc_rec.c hdlc_rec2.o multi_modem.o rrbb.o \
|
||||
fcs_calc.c ax25_pad.c decode_aprs.c dwgpsnmea.o \
|
||||
dwgps.o dwgpsd.o serial_port.o telemetry.c latlong.c symbols.c tt_text.c textcolor.c \
|
||||
atest : atest.c demod.o demod_afsk.o demod_9600.o \
|
||||
dsp.o hdlc_rec.o hdlc_rec2.o multi_modem.o rrbb.o \
|
||||
fcs_calc.o ax25_pad.o decode_aprs.o dwgpsnmea.o \
|
||||
dwgps.o dwgpsd.o serial_port.o telemetry.o latlong.o symbols.o tt_text.o textcolor.o \
|
||||
misc.a
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
|
@ -683,6 +683,7 @@ kisstest : kiss_frame.c
|
|||
|
||||
# ----------------------------- Manual tests and experiments ---------------------------
|
||||
|
||||
# These are not included in a normal build. Might be broken.
|
||||
|
||||
# Unit test for IGate
|
||||
|
||||
|
@ -690,19 +691,23 @@ itest : igate.c textcolor.c ax25_pad.c fcs_calc.c textcolor.o misc.a
|
|||
$(CC) $(CFLAGS) -DITEST -o $@ $^
|
||||
./itest
|
||||
|
||||
# Unit test for UDP reception with AFSK demodulator
|
||||
# Unit test for UDP reception with AFSK demodulator.
|
||||
# Temporary during development. Might not be useful anymore.
|
||||
|
||||
udptest : udp_test.c demod.c dsp.c demod_afsk.c demod_9600.c hdlc_rec.c hdlc_rec2.c multi_modem.c rrbb.c
|
||||
fcs_calc.c ax25_pad.c decode_aprs.c symbols.c textcolor.c misc.a
|
||||
udptest : udp_test.c demod.o dsp.o demod_afsk.o demod_9600.o hdlc_rec.o hdlc_rec2.o multi_modem.o rrbb.o \
|
||||
fcs_calc.o ax25_pad.o decode_aprs.o symbols.o textcolor.o misc.a
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
./udptest
|
||||
|
||||
# For demodulator tweaking experiments.
|
||||
# Dependencies of demod*.c, rather than .o, are intentional.
|
||||
|
||||
demod.o : tune.h
|
||||
demod_afsk.o : tune.h
|
||||
demod_9600.o : tune.h
|
||||
|
||||
testagc : atest.c demod.c dsp.c demod_afsk.c demod_9600.c hdlc_rec.c hdlc_rec2.o multi_modem.o rrbb.o \
|
||||
fcs_calc.c ax25_pad.c decode_aprs.c telemetry.c latlong.c symbols.c tune.h textcolor.c misc.a
|
||||
testagc : atest.c demod.c dsp.c demod_afsk.c demod_9600.c hdlc_rec.o hdlc_rec2.o multi_modem.o rrbb.o \
|
||||
fcs_calc.o ax25_pad.o decode_aprs.o telemetry.o latlong.o symbols.o tune.h textcolor.o misc.a
|
||||
$(CC) $(CFLAGS) -o atest $^ $(LDFLAGS)
|
||||
./atest 02_Track_2.wav | grep "packets decoded in" > atest.out
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <fcntl.h>
|
||||
|
|
2
audio.c
2
audio.c
|
@ -1134,7 +1134,7 @@ int audio_flush (int a)
|
|||
{
|
||||
#if USE_ALSA
|
||||
int k;
|
||||
char *psound;
|
||||
unsigned char *psound;
|
||||
int retries = 10;
|
||||
snd_pcm_status_t *status;
|
||||
|
||||
|
|
2
config.c
2
config.c
|
@ -1233,7 +1233,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
|
|||
/* Later, we check for valid letters and no more than one letter if + specified. */
|
||||
|
||||
for (pc = t; *pc != '\0'; pc++) {
|
||||
if ( ! isalpha(*pc) && ! *pc == '+') {
|
||||
if ( ! isalpha(*pc) && ! (*pc == '+')) {
|
||||
text_color_set(DW_COLOR_ERROR);
|
||||
dw_printf ("Line %d: Demodulator type can only contain letters and + character.\n", line);
|
||||
}
|
||||
|
|
|
@ -720,7 +720,7 @@ static void emit_macro (char *name, int size, float *coeff)
|
|||
dw_printf ("\n");
|
||||
}
|
||||
|
||||
int main ()
|
||||
int main (void)
|
||||
{
|
||||
//int n;
|
||||
char fff_profile;
|
||||
|
|
1
dwgpsd.c
1
dwgpsd.c
|
@ -41,6 +41,7 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
|
||||
#if __WIN32__
|
||||
#error Not for Windows
|
||||
|
|
1
igate.c
1
igate.c
|
@ -81,6 +81,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#endif
|
||||
|
|
2
kiss.c
2
kiss.c
|
@ -685,7 +685,7 @@ void kiss_send_rec_packet (int chan, unsigned char *fbuf, int flen)
|
|||
text_color_set(DW_COLOR_DEBUG);
|
||||
dw_printf ("\n");
|
||||
dw_printf ("Packet content before adding KISS framing and any escapes:\n");
|
||||
hex_dump ((char*)fbuf, flen);
|
||||
hex_dump (fbuf, flen);
|
||||
}
|
||||
|
||||
kiss_len = kiss_encapsulate (stemp, flen+1, kiss_buff);
|
||||
|
|
|
@ -511,7 +511,7 @@ void kissnet_send_rec_packet (int chan, unsigned char *fbuf, int flen)
|
|||
text_color_set(DW_COLOR_DEBUG);
|
||||
dw_printf ("\n");
|
||||
dw_printf ("Packet content before adding KISS framing and any escapes:\n");
|
||||
hex_dump ((char*)fbuf, flen);
|
||||
hex_dump (fbuf, flen);
|
||||
}
|
||||
|
||||
kiss_len = kiss_encapsulate (stemp, flen+1, kiss_buff);
|
||||
|
|
Loading…
Reference in New Issue