Browse Source

Formatting, const in G33

pull/1/head
Scott Lahteine 8 years ago
parent
commit
d7fda2fe49
  1. 13
      Marlin/Marlin_main.cpp

13
Marlin/Marlin_main.cpp

@ -5137,7 +5137,6 @@ void home_all_axes() { gcode_G28(true); }
} }
const bool towers_set = !code_seen('T'), const bool towers_set = !code_seen('T'),
_1p_calibration = probe_points == 1, _1p_calibration = probe_points == 1,
_4p_calibration = probe_points == 2, _4p_calibration = probe_points == 2,
_4p_towers_points = _4p_calibration && towers_set, _4p_towers_points = _4p_calibration && towers_set,
@ -5151,14 +5150,12 @@ void home_all_axes() { gcode_G28(true); }
_7p_intermed_points = _7p_calibration && !_7p_half_circle; _7p_intermed_points = _7p_calibration && !_7p_half_circle;
if (!_1p_calibration) { // test if the outer radius is reachable if (!_1p_calibration) { // test if the outer radius is reachable
for (uint8_t axis = 1; axis < 13; ++axis) { const float circles = (_7p_quadruple_circle ? 1.5 :
float circles = (_7p_quadruple_circle ? 1.5 :
_7p_triple_circle ? 1.0 : _7p_triple_circle ? 1.0 :
_7p_double_circle ? 0.5 : 0); _7p_double_circle ? 0.5 : 0),
if (!position_is_reachable_by_probe_xy(cos(RADIANS(180 + 30 * axis)) * radius = (1 + circles * 0.1) * delta_calibration_radius;
delta_calibration_radius * (1 + circles * 0.1), for (uint8_t axis = 1; axis < 13; ++axis) {
sin(RADIANS(180 + 30 * axis)) * if (!position_is_reachable_by_probe_xy(cos(RADIANS(180 + 30 * axis)) * radius, sin(RADIANS(180 + 30 * axis)) * radius)) {
delta_calibration_radius * (1 + circles * 0.1))) {
SERIAL_PROTOCOLLNPGM("?(M665 B)ed radius is implausible."); SERIAL_PROTOCOLLNPGM("?(M665 B)ed radius is implausible.");
return; return;
} }

Loading…
Cancel
Save