1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

cpu/nrf51: fix NDEBUG compile problem

This commit is contained in:
Gunar Schorcht 2020-02-25 14:22:20 +01:00
parent bc071044d7
commit b2356d29c5

View File

@ -121,6 +121,10 @@ uint32_t pwm_init(pwm_t dev, pwm_mode_t mode, uint32_t freq, uint16_t res)
void pwm_set(pwm_t dev, uint8_t channel, uint16_t value)
{
#ifdef NDEBUG
(void)dev;
(void)channel;
#endif
assert((dev == 0) && (channel == 0));
/*
@ -192,6 +196,9 @@ void pwm_set(pwm_t dev, uint8_t channel, uint16_t value)
uint8_t pwm_channels(pwm_t dev)
{
#ifdef NDEBUG
(void)dev;
#endif
assert(dev == 0);
return 1;
}