Use PGM_P for PSTR pointers (#11977)
This commit is contained in:
@ -82,7 +82,7 @@ void vector_3::apply_rotation(const matrix_3x3 &matrix) {
|
||||
z = _x * matrix.matrix[3 * 0 + 2] + _y * matrix.matrix[3 * 1 + 2] + z * matrix.matrix[3 * 2 + 2];
|
||||
}
|
||||
|
||||
void vector_3::debug(const char * const title) {
|
||||
void vector_3::debug(PGM_P const title) {
|
||||
serialprintPGM(title);
|
||||
SERIAL_PROTOCOLPGM(" x: ");
|
||||
SERIAL_PROTOCOL_F(x, 6);
|
||||
@ -143,7 +143,7 @@ matrix_3x3 matrix_3x3::transpose(const matrix_3x3 &original) {
|
||||
return new_matrix;
|
||||
}
|
||||
|
||||
void matrix_3x3::debug(const char * const title) {
|
||||
void matrix_3x3::debug(PGM_P const title) {
|
||||
if (title != NULL) {
|
||||
serialprintPGM(title);
|
||||
SERIAL_EOL();
|
||||
|
@ -57,7 +57,7 @@ struct vector_3 {
|
||||
float get_length() const;
|
||||
vector_3 get_normal() const;
|
||||
|
||||
void debug(const char * const title);
|
||||
void debug(PGM_P const title);
|
||||
void apply_rotation(const matrix_3x3 &matrix);
|
||||
};
|
||||
|
||||
@ -70,7 +70,7 @@ struct matrix_3x3 {
|
||||
|
||||
void set_to_identity();
|
||||
|
||||
void debug(const char * const title);
|
||||
void debug(PGM_P const title);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user