fixed a pwm bug (forgotten join() after interrupt() of PwmThread)