Skip to content

Commit

Permalink
Make recent receivers array size configurable at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis_V committed Apr 22, 2024
1 parent f55a492 commit 73a6964
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ ifeq ($(PRINT_UUIDS), yes)
CFLAGS += -DPRINT_UUIDS
endif

ifneq ($(RECENT_RECEIVER_IDS),)
CFLAGS += -DRECENT_RECEIVER_IDS=$(RECENT_RECEIVER_IDS)
endif

ifeq ($(RTLSDR), yes)
SDR_OBJ += sdr_rtlsdr.o
CFLAGS += -DENABLE_RTLSDR
Expand Down
2 changes: 2 additions & 0 deletions track.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ int nogps(int64_t now, struct aircraft *a);

#define RECEIVERIDBUFFER (12)

#ifndef RECENT_RECEIVER_IDS
#define RECENT_RECEIVER_IDS (32)
#endif

typedef struct
{
Expand Down

0 comments on commit 73a6964

Please sign in to comment.