Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quick Fix of overflow for larger toggle_count values
Quick Fix of overflow for larger `toggle_count` values. Because of the 16-bit `int` value in many platforms including Uno, the calculation of `toggle_count` overflows easily. For example with a frequency of 39kHz and a duration of 9ms, you get `toggle_count == 112 `, which is 1.5ms.
- Loading branch information