summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-04-09 21:19:52 +0200
committerFred Sundvik <fsundvik@gmail.com>2017-04-13 15:00:29 +0200
commite950d4e12fb92550b34ab7c2b48d45a11bf88026 (patch)
tree4685fd67923a7954563185a5992bf76316c46ad3 /keyboards
parent2d1528c69f13258de9193d9099d196a60f3892d4 (diff)
downloadqmk_firmware-e950d4e12fb92550b34ab7c2b48d45a11bf88026.tar.gz
qmk_firmware-e950d4e12fb92550b34ab7c2b48d45a11bf88026.tar.xz
Fix frosty_flake warning when print is disabled
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/frosty_flake/matrix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/frosty_flake/matrix.c b/keyboards/frosty_flake/matrix.c
index 05dffdb64..cde7f63b9 100644
--- a/keyboards/frosty_flake/matrix.c
+++ b/keyboards/frosty_flake/matrix.c
@@ -115,6 +115,7 @@ inline matrix_row_t matrix_get_row(uint8_t row) {
}
void matrix_print(void) {
+#ifndef NO_PRINT
print("\nr\\c ABCDEFGHIJKLMNOPQR\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
matrix_row_t matrix_row = matrix_get_row(row);
@@ -125,6 +126,7 @@ void matrix_print(void) {
}
print("\n");
}
+#endif
}
uint8_t matrix_key_count(void) {
@@ -132,4 +134,4 @@ uint8_t matrix_key_count(void) {
for (uint8_t row = 0; row < MATRIX_ROWS; row++)
count += bitpop32(matrix[row]);
return count;
-} \ No newline at end of file
+}