This repository was archived by the owner on Jan 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ class ESP8266TimerInterrupt
180
180
void reattachInterrupt ()
181
181
{
182
182
if ( (_frequency != 0 ) && (_timerCount != 0 ) && (_callback != NULL ) )
183
- setFrequency (_frequency, _callback);
183
+ setFrequency (_frequency / _timerCount , _callback);
184
184
}
185
185
186
186
// Duration (in milliseconds). Duration = 0 or not specified => run indefinitely
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ class ESP8266TimerInterrupt
180
180
void reattachInterrupt ()
181
181
{
182
182
if ( (_frequency != 0 ) && (_timerCount != 0 ) && (_callback != NULL ) )
183
- setFrequency (_frequency, _callback);
183
+ setFrequency (_frequency / _timerCount , _callback);
184
184
}
185
185
186
186
// Duration (in milliseconds). Duration = 0 or not specified => run indefinitely
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ class ESP8266TimerInterrupt
180
180
void reattachInterrupt ()
181
181
{
182
182
if ( (_frequency != 0 ) && (_timerCount != 0 ) && (_callback != NULL ) )
183
- setFrequency (_frequency, _callback);
183
+ setFrequency (_frequency / _timerCount , _callback);
184
184
}
185
185
186
186
// Duration (in milliseconds). Duration = 0 or not specified => run indefinitely
You can’t perform that action at this time.
0 commit comments