Skip to content

Commit

Permalink
fix SPI device path
Browse files Browse the repository at this point in the history
Signed-off-by: Xue Liu <[email protected]>
  • Loading branch information
xueliu committed Jul 31, 2017
1 parent a852682 commit 983081b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lora-gateway/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

if PACKAGE_libloragw

config SPI_DEVICE
string "SPI Device"
config SX1301_SPI_PATH
string "SPI Dev Path"
default /dev/spidev0.0

endif
Expand Down
2 changes: 1 addition & 1 deletion lora-gateway/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ define Package/lora-gateway-utils
DEPENDS:=+libloragw
endef

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

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/libloragw
Expand Down

0 comments on commit 983081b

Please sign in to comment.