mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Fix ECHOPAIR ambiguity
- Also patch up some warnings
This commit is contained in:
parent
b2496533c6
commit
460f73056b
@ -754,7 +754,7 @@ void Config_PrintSettings(bool forReplay) {
|
|||||||
SERIAL_ECHOLNPGM("Z-Probe Offset (mm):");
|
SERIAL_ECHOLNPGM("Z-Probe Offset (mm):");
|
||||||
SERIAL_ECHO_START;
|
SERIAL_ECHO_START;
|
||||||
}
|
}
|
||||||
SERIAL_ECHOPAIR(" M", CUSTOM_M_CODE_SET_Z_PROBE_OFFSET);
|
SERIAL_ECHOPAIR(" M", (unsigned long)CUSTOM_M_CODE_SET_Z_PROBE_OFFSET);
|
||||||
SERIAL_ECHOPAIR(" Z", -zprobe_zoffset);
|
SERIAL_ECHOPAIR(" Z", -zprobe_zoffset);
|
||||||
#else
|
#else
|
||||||
if (!forReplay) {
|
if (!forReplay) {
|
||||||
|
@ -2922,7 +2922,7 @@ inline void gcode_M42() {
|
|||||||
do_blocking_move_to( X_probe_location, Y_probe_location, Z_start_location); // Make sure we are at the probe location
|
do_blocking_move_to( X_probe_location, Y_probe_location, Z_start_location); // Make sure we are at the probe location
|
||||||
|
|
||||||
if (n_legs) {
|
if (n_legs) {
|
||||||
double radius=0.0, theta=0.0, x_sweep, y_sweep;
|
double radius=0.0, theta=0.0;
|
||||||
int l;
|
int l;
|
||||||
int rotational_direction = (unsigned long) millis() & 0x0001; // clockwise or counter clockwise
|
int rotational_direction = (unsigned long) millis() & 0x0001; // clockwise or counter clockwise
|
||||||
radius = (unsigned long)millis() % (long)(X_MAX_LENGTH / 4); // limit how far out to go
|
radius = (unsigned long)millis() % (long)(X_MAX_LENGTH / 4); // limit how far out to go
|
||||||
|
@ -59,7 +59,7 @@ void vector_3::apply_rotation(matrix_3x3 matrix) {
|
|||||||
z = resultZ;
|
z = resultZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void vector_3::debug(char* title) {
|
void vector_3::debug(const char title[]) {
|
||||||
SERIAL_PROTOCOL(title);
|
SERIAL_PROTOCOL(title);
|
||||||
SERIAL_PROTOCOLPGM(" x: ");
|
SERIAL_PROTOCOLPGM(" x: ");
|
||||||
SERIAL_PROTOCOL_F(x, 6);
|
SERIAL_PROTOCOL_F(x, 6);
|
||||||
@ -120,7 +120,7 @@ matrix_3x3 matrix_3x3::transpose(matrix_3x3 original) {
|
|||||||
return new_matrix;
|
return new_matrix;
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_3x3::debug(char* title) {
|
void matrix_3x3::debug(const char title[]) {
|
||||||
SERIAL_PROTOCOLLN(title);
|
SERIAL_PROTOCOLLN(title);
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for(int i=0; i<3; i++) {
|
for(int i=0; i<3; i++) {
|
||||||
|
@ -37,7 +37,7 @@ struct vector_3
|
|||||||
float get_length();
|
float get_length();
|
||||||
vector_3 get_normal();
|
vector_3 get_normal();
|
||||||
|
|
||||||
void debug(char* title);
|
void debug(const char title[]);
|
||||||
|
|
||||||
void apply_rotation(matrix_3x3 matrix);
|
void apply_rotation(matrix_3x3 matrix);
|
||||||
};
|
};
|
||||||
@ -52,7 +52,7 @@ struct matrix_3x3
|
|||||||
|
|
||||||
void set_to_identity();
|
void set_to_identity();
|
||||||
|
|
||||||
void debug(char* title);
|
void debug(const char title[]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user