mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples/leds_shell: fix segfault
This commit is contained in:
parent
4612cc2348
commit
ca9835fc53
@ -19,4 +19,10 @@ QUIET ?= 1
|
||||
USEMODULE += shell
|
||||
USEMODULE += periph_gpio
|
||||
|
||||
# Prevents native and native64 program from segfault when gpio set/clear are
|
||||
# used without a gpiochip
|
||||
ifneq (,$(filter native native64,$(BOARD)))
|
||||
USEMODULE += periph_gpio_mock
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user