Skip to content

Commit

Permalink
This is nice to MacOS users - the do not have to disable GPIO
Browse files Browse the repository at this point in the history
in the Makefile, it is fully automatic now.
  • Loading branch information
dl1ycf committed Oct 29, 2021
1 parent a7550d3 commit e9da187
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ ifeq ($(PTT_INCLUDE),PTT)
PTT_OPTIONS=-D PTT
endif

ifeq ($(UNAME_S), Darwin)
GPIO_INCLUDE=
endif

ifeq ($(GPIO_INCLUDE),GPIO)
GPIO_OPTIONS=-D GPIO
GPIOD_VERSION=$(shell pkg-config --modversion libgpiod)
Expand Down

0 comments on commit e9da187

Please sign in to comment.