Skip to content

Commit

Permalink
Prefer Servo AVR timer4 over 3 (MarlinFirmware#19025)
Browse files Browse the repository at this point in the history
  • Loading branch information
GMagician authored and albertogg committed Aug 31, 2020
1 parent a450493 commit 19d2217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/HAL/AVR/ServoTimers.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
// Say which 16 bit timers can be used and in what order
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
//#define _useTimer1
#define _useTimer3
#define _useTimer4
#if NUM_SERVOS > SERVOS_PER_TIMER
#define _useTimer4
#define _useTimer3
#if !HAS_MOTOR_CURRENT_PWM && SERVOS > 2 * SERVOS_PER_TIMER
#define _useTimer5 // Timer 5 is used for motor current PWM and can't be used for servos.
#endif
Expand Down

0 comments on commit 19d2217

Please sign in to comment.