Browse Source

Merge pull request #6658 from thinkyhead/bf_cleanup_tuesday

Patch spacing, const, .gitignore
pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
59ab971f81
  1. 4
      .gitignore
  2. 7
      Marlin/temperature.cpp

4
.gitignore

@ -116,9 +116,7 @@ tags
*.su
# PlatformIO files/dirs
.pioenvs
.piolib
.piolibdeps
.pio*
lib/readme.txt
#Visual Studio

7
Marlin/temperature.cpp

@ -2045,15 +2045,14 @@ void Temperature::isr() {
#if ENABLED(BABYSTEPPING)
LOOP_XYZ(axis) {
int curTodo = babystepsTodo[axis]; //get rid of volatile for performance
const int curTodo = babystepsTodo[axis]; // get rid of volatile for performance
if (curTodo > 0) {
stepper.babystep((AxisEnum)axis, /*fwd*/true);
babystepsTodo[axis]--; //fewer to do next time
babystepsTodo[axis]--;
}
else if (curTodo < 0) {
stepper.babystep((AxisEnum)axis, /*fwd*/false);
babystepsTodo[axis]++; //fewer to do next time
babystepsTodo[axis]++;
}
}
#endif // BABYSTEPPING

Loading…
Cancel
Save