Browse Source

General cleanup

pull/1/head
Scott Lahteine 8 years ago
committed by Scott Lahteine
parent
commit
6131c62499
  1. 4
      Marlin/Marlin_main.cpp
  2. 4
      Marlin/servo.cpp

4
Marlin/Marlin_main.cpp

@ -5858,10 +5858,6 @@ inline void gcode_M42() {
#else
#if !defined(z_servo_angle)
const int z_servo_angle[2] = Z_SERVO_ANGLES;
#endif
const uint8_t probe_index = code_seen('P') ? code_value_byte() : Z_ENDSTOP_SERVO_NR;
SERIAL_PROTOCOLLNPGM("Servo probe test");

4
Marlin/servo.cpp

@ -168,8 +168,8 @@ static void initISR(timer16_Sequence_t timer) {
SBI(TIFR, OCF3A); // clear any pending interrupts;
SBI(ETIMSK, OCIE3A); // enable the output compare interrupt
#else
TIFR3 = _BV(OCF3A); // clear any pending interrupts;
TIMSK3 = _BV(OCIE3A) ; // enable the output compare interrupt
SBI(TIFR3, OCF3A); // clear any pending interrupts;
SBI(TIMSK3, OCIE3A); // enable the output compare interrupt
#endif
#ifdef WIRING
timerAttach(TIMER3OUTCOMPAREA_INT, Timer3Service); // for Wiring platform only

Loading…
Cancel
Save