[1.1.x] Fix compilation warnings (#8395)
* Fix up Travis CI and compile warnings/errors * No ULTRA_LCD with REPRAP_DISCOUNT_SMART_CONTROLLER * No point in setting all the endstop plugs
This commit is contained in:
committed by
Scott Lahteine
parent
a2fc7da587
commit
d2df00bfca
@@ -7790,7 +7790,6 @@ inline void gcode_M105() {
|
||||
if (p < FAN_COUNT) {
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
const int16_t t = parser.intval('T');
|
||||
NOMORE(t, 255);
|
||||
if (t > 0) {
|
||||
switch (t) {
|
||||
case 1:
|
||||
@@ -7801,7 +7800,7 @@ inline void gcode_M105() {
|
||||
fanSpeeds[p] = new_fanSpeeds[p];
|
||||
break;
|
||||
default:
|
||||
new_fanSpeeds[p] = t;
|
||||
new_fanSpeeds[p] = min(t, 255);
|
||||
break;
|
||||
}
|
||||
return;
|
||||
@@ -9323,7 +9322,7 @@ inline void gcode_M226() {
|
||||
zprobe_zoffset += offs;
|
||||
refresh_zprobe_zoffset(); // This will babystep the axis
|
||||
#else
|
||||
thermalManager.babystep_axis(Z_AXIS, parser.value_axis_units(Z_AXIS) * planner.axis_steps_per_mm[Z_AXIS]);
|
||||
thermalManager.babystep_axis(Z_AXIS, offs * planner.axis_steps_per_mm[Z_AXIS]);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1746,15 +1746,15 @@ void Temperature::isr() {
|
||||
|
||||
#if ENABLED(FAN_SOFT_PWM)
|
||||
#if HAS_FAN0
|
||||
soft_pwm_count_fan[0] = (soft_pwm_count_fan[0] & pwm_mask) + soft_pwm_amount_fan[0] >> 1;
|
||||
soft_pwm_count_fan[0] = ((soft_pwm_count_fan[0] & pwm_mask) + soft_pwm_amount_fan[0]) >> 1;
|
||||
WRITE_FAN(soft_pwm_count_fan[0] > pwm_mask ? HIGH : LOW);
|
||||
#endif
|
||||
#if HAS_FAN1
|
||||
soft_pwm_count_fan[1] = (soft_pwm_count_fan[1] & pwm_mask) + soft_pwm_amount_fan[1] >> 1;
|
||||
soft_pwm_count_fan[1] = ((soft_pwm_count_fan[1] & pwm_mask) + soft_pwm_amount_fan[1]) >> 1;
|
||||
WRITE_FAN1(soft_pwm_count_fan[1] > pwm_mask ? HIGH : LOW);
|
||||
#endif
|
||||
#if HAS_FAN2
|
||||
soft_pwm_count_fan[2] = (soft_pwm_count_fan[2] & pwm_mask) + soft_pwm_amount_fan[2] >> 1;
|
||||
soft_pwm_count_fan[2] = ((soft_pwm_count_fan[2] & pwm_mask) + soft_pwm_amount_fan[2]) >> 1;
|
||||
WRITE_FAN2(soft_pwm_count_fan[2] > pwm_mask ? HIGH : LOW);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user