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

Merge pull request #9768 from SemjonKerner/fix_periph_pwm_nrf51

cpu/nrf51: fix formatting uint to PRIu32
This commit is contained in:
Martine Lenders 2018-08-13 18:33:08 +02:00 committed by GitHub
commit c8fb743ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@
#include <stdint.h>
#include <string.h>
#include <inttypes.h>
#include "periph/gpio.h"
#include "periph/pwm.h"
@ -113,7 +114,7 @@ uint32_t pwm_init(pwm_t dev, pwm_mode_t mode, uint32_t freq, uint16_t res)
/* start pwm with value '0' */
pwm_set(dev, 0, 0);
DEBUG("Timer frequency is set to %ld\n", timer_freq);
DEBUG("Timer frequency is set to %" PRIu32 "\n", timer_freq);
return (uint32_t)(timer_freq / res);
}