Skip to content

Commit b3d534c

Browse files
committed
pdv.1
1 parent d4be3b8 commit b3d534c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
CFLAGS?=-O2 -g -Wall -W $(shell pkg-config --cflags librtlsdr)
2-
LDLIBS+=$(shell pkg-config --libs librtlsdr) -lpthread -lm
3-
CC?=gcc
1+
CFLAGS += $(shell PKG_CONFIG_PATH=$(STAGEDIR)/lib/pkgconfig/ pkg-config --cflags librtlsdr)
2+
LDLIBS += $(shell PKG_CONFIG_PATH=$(STAGEDIR)/lib/pkgconfig/ pkg-config --libs librtlsdr) -lpthread -lm
3+
44
PROGNAME=dump1090
55

66
all: dump1090

dump1090.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,8 @@ void dumpRawMessageJS(char *descr, unsigned char *msg,
532532
if (fixable > 255) fix2 = fixable >> 8;
533533
}
534534

535-
if ((fp = fopen("frames.js","a")) == NULL) {
536-
fprintf(stderr, "Error opening frames.js: %s\n", strerror(errno));
535+
if ((fp = fopen("/tmp/frames.js","a")) == NULL) {
536+
fprintf(stderr, "Error opening /tmp/frames.js: %s\n", strerror(errno));
537537
exit(1);
538538
}
539539

@@ -2449,7 +2449,7 @@ void showHelp(void) {
24492449
" C = Log frames with good CRC\n"
24502450
" p = Log frames with bad preamble\n"
24512451
" n = Log network debugging info\n"
2452-
" j = Log frames to frames.js, loadable by debug.html.\n"
2452+
" j = Log frames to /tmp/frames.js, loadable by debug.html.\n"
24532453
);
24542454
}
24552455

0 commit comments

Comments
 (0)