1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/ztimer: ztimer_mock: guard ztimer_ondemand static functions

This commit is contained in:
Kaspar Schleiser 2022-12-20 12:39:03 +01:00
parent de0bd9770f
commit ccc3c936c4

View File

@ -119,6 +119,7 @@ static void ztimer_mock_op_cancel(ztimer_clock_t *clock)
self->armed = 0;
}
#if MODULE_ZTIMER_ONDEMAND
static void ztimer_mock_op_start(ztimer_clock_t *clock)
{
ztimer_mock_t *self = (ztimer_mock_t *)clock;
@ -138,6 +139,7 @@ static void ztimer_mock_op_stop(ztimer_clock_t *clock)
DEBUG("zmock_stop: %3u\n", self->calls.stop);
self->running = 0;
}
#endif
static const ztimer_ops_t ztimer_mock_ops = {
.set = ztimer_mock_op_set,