TARGET_NRF5 - Fix signed to unsigned comparison.

pull/2785/head
Vincent Coubard 2016-09-22 16:11:27 +01:00
parent 54f52d7a5f
commit 0e0cc2687a
1 changed files with 2 additions and 2 deletions

View File

@ -375,10 +375,10 @@ static void pwm_transition_n_to_m(app_pwm_t const * const p_instance,
#ifdef NRF52
if (ticks + ((nrf_timer_frequency_get(p_instance->p_timer->p_reg) ==
(m_use_ppi_delay_workaround ? NRF_TIMER_FREQ_8MHz : NRF_TIMER_FREQ_16MHz) ) ? 1 : 0)
(m_use_ppi_delay_workaround ? NRF_TIMER_FREQ_8MHz : NRF_TIMER_FREQ_16MHz) ) ? 1U : 0U)
< p_ch_cb->pulsewidth)
#else
if (ticks + ((nrf_timer_frequency_get(p_instance->p_timer->p_reg) == NRF_TIMER_FREQ_16MHz) ? 1 : 0)
if (ticks + ((nrf_timer_frequency_get(p_instance->p_timer->p_reg) == NRF_TIMER_FREQ_16MHz) ? 1U : 0U)
< p_ch_cb->pulsewidth)
#endif
{