Skip to content

Commit

Permalink
Merge pull request #20796 from krzysztof-cabaj/examples-leds_shell-fi…
Browse files Browse the repository at this point in the history
…x-segfault

examples/leds_shell: use periph_gpio_mock on native
  • Loading branch information
benpicco authored Jul 26, 2024
2 parents 9afad95 + ca9835f commit d2fa0c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/leds_shell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d2fa0c6

Please sign in to comment.