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'.
This commit is contained in:
cladmi 2018-09-26 17:41:48 +02:00 committed by Gaëtan Harter
parent c7de150ec3
commit ebd438cb58
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -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