Skip to content

Commit

Permalink
sys/ztimer: ztimer_mock: guard ztimer_ondemand static functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Jan 10, 2023
1 parent de0bd97 commit ccc3c93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/ztimer/mock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit ccc3c93

Please sign in to comment.