Browse Source

Only set Compare Mode for channel A

Fixes #6445
Scott Lahteine 7 years ago
parent
commit
5512130d6c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/stepper.cpp

+ 1
- 1
Marlin/stepper.cpp View File

@@ -1084,7 +1084,7 @@ void Stepper::init() {
1084 1084
   SET_WGM(1, CTC_OCRnA);
1085 1085
 
1086 1086
   // output mode = 00 (disconnected)
1087
-  SET_COMS(1, NORMAL, NORMAL, NORMAL);
1087
+  SET_COMA(1, NORMAL);
1088 1088
 
1089 1089
   // Set the timer pre-scaler
1090 1090
   // Generally we use a divider of 8, resulting in a 2MHz timer

Loading…
Cancel
Save