Only set Compare Mode for channel A

Fixes #6445
This commit is contained in:
Scott Lahteine 2017-04-25 23:14:16 -05:00 committed by GitHub
parent d467e97679
commit 5512130d6c

View file

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