Use PGM_P for PSTR pointers (#11977)

This commit is contained in:
Scott Lahteine
2018-09-30 23:44:33 -05:00
committed by GitHub
parent 4d5566a6b7
commit 11ac75edcb
39 changed files with 166 additions and 165 deletions

View File

@ -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();

View File

@ -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);
};