Skip to content

Commit

Permalink
examples/leds_shell: fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-cabaj committed Jul 26, 2024
1 parent 4612cc2 commit f7473f2
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

Check failure on line 22 in examples/leds_shell/Makefile

View workflow job for this annotation

GitHub Actions / static-tests

trailing whitespace.
# used without a gpiochip
ifneq (,$(filter native native64,$(BOARD)))
USEMODULE += periph_gpio_mock
endif

include $(RIOTBASE)/Makefile.include

0 comments on commit f7473f2

Please sign in to comment.