Fixes for ADC advance and PWM settings