From 18c1754d858b3973499a19fa7df5f27046684014 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 21 Nov 2024 16:14:37 +0100 Subject: [PATCH] ztimer_xtimer_compat: warn if backend != ztimer_usec --- sys/ztimer/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/ztimer/Makefile.include b/sys/ztimer/Makefile.include index a6e0153de2..b0e38e83db 100644 --- a/sys/ztimer/Makefile.include +++ b/sys/ztimer/Makefile.include @@ -2,6 +2,10 @@ # ztimer's compatibility wrapper ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE))) PSEUDOMODULES += xtimer + + ifeq (,$(filter ztimer_usec,$(USEMODULE))) + $(info $(COLOR_YELLOW)WARNING! xtimer compat without ztimer_usec may be inaccurate$(COLOR_RESET)) + endif endif MODULES_ZTIMER_ON_RTT_CONFLICT = rtt_rtc gnrc_lwmac gnrc_gomach