Fixes some bugs with setting up PWM on BBB automatically.