1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #18352 from kfessel/p-fix-unittestxztimerdoubleinit

unittest/main: do not intialize xtimer if ztimer_xtimer_compat
This commit is contained in:
Karl Fessel 2022-07-21 17:21:58 +02:00 committed by GitHub
commit a43f4cbf9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ int main(void)
ztimer_init();
#endif
#ifdef MODULE_XTIMER
#if IS_USED(MODULE_XTIMER) && !IS_USED(MODULE_ZTIMER_XTIMER_COMPAT)
/* auto_init is disabled, but some modules depends on this module being initialized */
xtimer_init();
#endif