From 2dc030ba703b2255745faab76dba36586624a362 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Thu, 11 Feb 2021 11:52:02 +0000 Subject: [PATCH] pwm.h typo: int16_t -> uint16_t (closes #109) --- src/rp2_common/hardware_pwm/include/hardware/pwm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/hardware_pwm/include/hardware/pwm.h b/src/rp2_common/hardware_pwm/include/hardware/pwm.h index fdb63c0..e191647 100644 --- a/src/rp2_common/hardware_pwm/include/hardware/pwm.h +++ b/src/rp2_common/hardware_pwm/include/hardware/pwm.h @@ -279,7 +279,7 @@ static inline void pwm_set_gpio_level(uint gpio, uint16_t level) { * \param slice_num PWM slice number * \return Current value of PWM counter */ -static inline int16_t pwm_get_counter(uint slice_num) { +static inline uint16_t pwm_get_counter(uint slice_num) { valid_params_if(PWM, slice_num >= 0 && slice_num < NUM_PWM_SLICES); return (pwm_hw->slice[slice_num].ctr); }