Update pwm.cpp