diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 587d251..e1ed666 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,6 +11,7 @@ "-j3", "ENABLE_DEBUG=1", "USE_GPSD=1", + "USE_DRATS=1", "all" ], "group": "build", diff --git a/DStarGateway/DStarGatewayApp.cpp b/DStarGateway/DStarGatewayApp.cpp index 940fc8f..16c7f52 100644 --- a/DStarGateway/DStarGatewayApp.cpp +++ b/DStarGateway/DStarGatewayApp.cpp @@ -240,9 +240,11 @@ bool CDStarGatewayApp::createThread() delete restrictList; } +#ifdef USE_DRATS // Drats TDRats drats; m_config->getDRats(drats); +#endif // Setup the repeaters bool ddEnabled = false; diff --git a/Makefile b/Makefile index d9f7720..28e98c0 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,9 @@ export CPPFLAGS+= -DUSE_GPSD export LDFLAGS+= -lgps endif +ifeq ($(USE_DRATS), 1) export CPPFLAGS+= -DUSE_DRATS +endif .PHONY: all all: DStarGateway/dstargateway DGWRemoteControl/dgwremotecontrol DGWTextTransmit/dgwtexttransmit DGWTimeServer/dgwtimeserver DGWVoiceTransmit/dgwvoicetransmit #tests