relate to #21
This commit is contained in:
1 parent
7168d198ef
commit
1f2efb042a
1 file changed
+2
-2
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user