Update drv_pwm.c

Autodetection & fix for Frsky cppm 18ms 8ch frame problem. Tested on Frsky D8R-II & Frsky D4FR.