Skip to content

Commit 983081b

Browse files
committed
fix SPI device path
Signed-off-by: Xue Liu <[email protected]>
1 parent a852682 commit 983081b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lora-gateway/Config.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
if PACKAGE_libloragw
44

5-
config SPI_DEVICE
6-
string "SPI Device"
5+
config SX1301_SPI_PATH
6+
string "SPI Dev Path"
77
default /dev/spidev0.0
88

99
endif

lora-gateway/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ define Package/lora-gateway-utils
5555
DEPENDS:=+libloragw
5656
endef
5757

58-
TARGET_CFLAGS += $(FPIC) -O2 -Wall -Wextra -std=c99 -Iinc -I. -lm -DSPI_DEV_PATH='\"/dev/spidev0.2\"'
58+
TARGET_CFLAGS += $(FPIC) -O2 -Wall -Wextra -std=c99 -Iinc -I. -lm -DSPI_DEV_PATH=\\\"\"$(CONFIG_SX1301_SPI_PATH)\\\"\"
5959

6060
define Build/InstallDev
6161
$(INSTALL_DIR) $(1)/usr/include/libloragw

0 commit comments

Comments
 (0)