summaryrefslogtreecommitdiff
path: root/loragw_hal/src/loragw_reg.c
diff options
context:
space:
mode:
authorSylvain Miermont <smiermont@semtech.com>2013-09-02 16:13:41 +0200
committerSylvain Miermont <smiermont@semtech.com>2013-10-23 11:36:29 +0200
commit33ade9eb698f594e95076a5e4056a70163f14278 (patch)
treea8fb4a31cf79f49ba8c3e517b0c8956eea3966c6 /loragw_hal/src/loragw_reg.c
parentddac0aa483dd5f7bca31b0c042949eca370a8fdc (diff)
downloadlora_gateway-33ade9eb698f594e95076a5e4056a70163f14278.tar.gz
lora_gateway-33ade9eb698f594e95076a5e4056a70163f14278.tar.bz2
lora_gateway-33ade9eb698f594e95076a5e4056a70163f14278.zip
Beta 4v1.b4
- now supports 'native' Linux /dev/spi* interface and SPI-over-USB using FTDI bridge through libmpsse - Flexible build system, with library.cfg file to set Makefile options - removed 500 kHz bandwidth limitation on radios, pushed it to the nominal 800kHz usable bandwidth - RSSI calibrated fo Lora multi-datarate channels
Diffstat (limited to 'loragw_hal/src/loragw_reg.c')
-rw-r--r--loragw_hal/src/loragw_reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loragw_hal/src/loragw_reg.c b/loragw_hal/src/loragw_reg.c
index ab5a922..716c6c0 100644
--- a/loragw_hal/src/loragw_reg.c
+++ b/loragw_hal/src/loragw_reg.c
@@ -28,7 +28,7 @@ Description:
/* --- PRIVATE MACROS ------------------------------------------------------- */
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
-#ifdef DEBUG
+#if DEBUG_REG == 1
#define DEBUG_MSG(str) fprintf(stderr, str)
#define DEBUG_PRINTF(fmt, args...) fprintf(stderr,"%s:%d: "fmt, __FUNCTION__, __LINE__, args)
#define CHECK_NULL(a) if(a==NULL){fprintf(stderr,"%s:%d: ERROR: NULL POINTER AS ARGUMENT\n", __FUNCTION__, __LINE__);return LGW_REG_ERROR;}