Fix matrix.debug output

This commit is contained in:
Scott Lahteine 2018-03-18 20:02:08 -05:00
parent bbfbf90797
commit 9d99360912

View File

@ -146,7 +146,10 @@ matrix_3x3 matrix_3x3::transpose(matrix_3x3 original) {
} }
void matrix_3x3::debug(const char * const title) { void matrix_3x3::debug(const char * const title) {
serialprintPGM(title); if (title != NULL) {
serialprintPGM(title);
SERIAL_EOL();
}
uint8_t count = 0; uint8_t count = 0;
for (uint8_t i = 0; i < 3; i++) { for (uint8_t i = 0; i < 3; i++) {
for (uint8_t j = 0; j < 3; j++) { for (uint8_t j = 0; j < 3; j++) {