Question
RC Receiver input not being picked up

This is the code i am using to pick up input from RC receiver to then change pwm values, but there seems to be a problem. PWM's are unresponsive to RC receiver which is connected to timer 2 channels. Is the given code correct? could it be that HAL_Delay is causing problems? I would appreciate any feedback, ive spent too much time trying to figure out the issue.
