Skip to content
Snippets Groups Projects
Unverified Commit ebd438cb authored by cladmi's avatar cladmi Committed by Gaëtan Harter
Browse files

sys/shell: select sc_rtc on USEMODULE

sc_rtc.c should only be compiled if periph_rtc module is actually used.

In practice there was not linking error when PERIPH_OPTIONAL|_REQUIRED
was not set as shell_commands hides calling the functions with
'#ifdef MODULE_PERIPH_RTC'.
parent c7de150e
Branches
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ ifneq (,$(filter cord_ep,$(USEMODULE)))
SRC += sc_cord_ep.c
endif
ifneq (,$(filter periph_rtc,$(FEATURES_PROVIDED)))
ifneq (,$(filter periph_rtc,$(USEMODULE)))
SRC += sc_rtc.c
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment