Skip to content

Commit

Permalink
Attempt to fix issue #162
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Apr 13, 2023
1 parent c7298cd commit 2aec776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megaavr/libraries/Servo/src/megaavr/Servo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#if (F_CPU > 10000000L)
#define usToTicks(_us) ((( (_us) / 2) * clockCyclesPerMicrosecond())) // converts microseconds to tick
#define ticksToUs(_ticks) (((unsigned) _ticks * 2) / clockCyclesPerMicrosecond()) // converts from ticks back to microseconds
#define ticksToUs(_ticks) (((unsigned) (_ticks) * 2) / clockCyclesPerMicrosecond()) // converts from ticks back to microseconds
#define TRIM_DURATION 37 // compensation ticks to trim adjust for digitalWrite delays
#else
#define usToTicks(_us) ((( _us ) * clockCyclesPerMicrosecond())) // converts microseconds to tick
Expand Down

0 comments on commit 2aec776

Please sign in to comment.