Skip to content

Commit

Permalink
Fix indent in stepper.h
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 12, 2018
1 parent b8f8dc7 commit 43bdd0b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Marlin/src/module/stepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,19 +269,19 @@ class Stepper {
inline static void set_position(const AxisEnum a, const int32_t &v) {
planner.synchronize();

#ifdef __AVR__
// Protect the access to the position. Only required for AVR, as
// any 32bit CPU offers atomic access to 32bit variables
const bool was_enabled = STEPPER_ISR_ENABLED();
if (was_enabled) DISABLE_STEPPER_DRIVER_INTERRUPT();
#endif
#ifdef __AVR__
// Protect the access to the position. Only required for AVR, as
// any 32bit CPU offers atomic access to 32bit variables
const bool was_enabled = STEPPER_ISR_ENABLED();
if (was_enabled) DISABLE_STEPPER_DRIVER_INTERRUPT();
#endif

count_position[a] = v;

#ifdef __AVR__
// Reenable Stepper ISR
if (was_enabled) ENABLE_STEPPER_DRIVER_INTERRUPT();
#endif
#ifdef __AVR__
// Reenable Stepper ISR
if (was_enabled) ENABLE_STEPPER_DRIVER_INTERRUPT();
#endif
}

private:
Expand Down

0 comments on commit 43bdd0b

Please sign in to comment.