This commit is contained in:
hathach committed 2017-03-28 22:15:52 +07:00
1 parent 7168d198ef
commit 1f2efb042a
1 file changed
+2 -2
+2 -2
View File
@@ -115,9 +115,9 @@ bool HardwarePWM::addPin(uint8_t pin)
// Must disable before changing PSEL
if ( begun() )
{
stop();
_pwm->ENABLE = 0;
_pwm->PSEL.OUT[_count++] = pin;
begin();
_pwm->ENABLE = 1;
_start();
}else
{