Syntax tweaks

master
Scott Lahteine 7 years ago
parent d3165cca4f
commit 737cee4b8c

@ -13305,11 +13305,14 @@ void prepare_move_to_destination() {
case TIMER1A: case TIMER1B: //_SET_CS(1, val); case TIMER1A: case TIMER1B: //_SET_CS(1, val);
break; break;
#endif #endif
#ifdef TCCR2 #if defined(TCCR2) || defined(TCCR2A)
case TIMER2: case TIMER2: _SET_CS(2, val); break; #ifdef TCCR2
#endif case TIMER2:
#ifdef TCCR2A #endif
case TIMER2A: case TIMER2B: _SET_CS(2, val); break; #ifdef TCCR2A
case TIMER2A: case TIMER2B:
#endif
_SET_CS(2, val); break;
#endif #endif
#ifdef TCCR3A #ifdef TCCR3A
case TIMER3A: case TIMER3B: case TIMER3C: _SET_CS(3, val); break; case TIMER3A: case TIMER3B: case TIMER3C: _SET_CS(3, val); break;

@ -1123,7 +1123,7 @@ void Planner::_buffer_line(const float &a, const float &b, const float &c, const
// Calculate and limit speed in mm/sec for each axis // Calculate and limit speed in mm/sec for each axis
float current_speed[NUM_AXIS], speed_factor = 1.0; // factor <1 decreases speed float current_speed[NUM_AXIS], speed_factor = 1.0; // factor <1 decreases speed
LOOP_XYZE(i) { LOOP_XYZE(i) {
const float cs = FABS(current_speed[i] = delta_mm[i] * inverse_mm_s); const float cs = FABS((current_speed[i] = delta_mm[i] * inverse_mm_s));
#if ENABLED(DISTINCT_E_FACTORS) #if ENABLED(DISTINCT_E_FACTORS)
if (i == E_AXIS) i += extruder; if (i == E_AXIS) i += extruder;
#endif #endif

Loading…
Cancel
Save