Strange values from HAL_TIM_ReadCapturedValue
I'm using input capture with a 16 bit timer to read a 1.5ms pulse that occurs every 20ms. I can see on my scope that the input pulse conforms to this exactly. Here's the code for the interrupt callback:uint16_t pwmVal0 = 0; uint16_t pwmVal1 = 0; ...