mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
Merge pull request #20796 from krzysztof-cabaj/examples-leds_shell-fix-segfault
examples/leds_shell: use periph_gpio_mock on native
This commit is contained in:
commit
d2fa0c6ce1
@ -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