aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboard/phantom/keymap.c1
-rw-r--r--keyboard/phantom/matrix.c6
2 files changed, 2 insertions, 5 deletions
diff --git a/keyboard/phantom/keymap.c b/keyboard/phantom/keymap.c
index 7433d53ce..1d23f2b02 100644
--- a/keyboard/phantom/keymap.c
+++ b/keyboard/phantom/keymap.c
@@ -26,7 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
26#include "action_macro.h" 26#include "action_macro.h"
27#include "report.h" 27#include "report.h"
28#include "host.h" 28#include "host.h"
29#include "print.h"
30#include "debug.h" 29#include "debug.h"
31#include "keymap.h" 30#include "keymap.h"
32 31
diff --git a/keyboard/phantom/matrix.c b/keyboard/phantom/matrix.c
index 386feea41..49d6b738e 100644
--- a/keyboard/phantom/matrix.c
+++ b/keyboard/phantom/matrix.c
@@ -100,7 +100,7 @@ uint8_t matrix_scan(void)
100 if (prev_bit != curr_bit) { 100 if (prev_bit != curr_bit) {
101 matrix_debouncing[row] ^= ((matrix_row_t)1<<col); 101 matrix_debouncing[row] ^= ((matrix_row_t)1<<col);
102 if (debouncing) { 102 if (debouncing) {
103 debug("bounce!: "); debug_hex(debouncing); print("\n"); 103 dprint("bounce!: "); dprintf("%02X", debouncing); dprintln();
104 } 104 }
105 debouncing = DEBOUNCE; 105 debouncing = DEBOUNCE;
106 } 106 }
@@ -143,9 +143,7 @@ void matrix_print(void)
143{ 143{
144 print("\nr/c 0123456789ABCDEF\n"); 144 print("\nr/c 0123456789ABCDEF\n");
145 for (uint8_t row = 0; row < MATRIX_ROWS; row++) { 145 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
146 phex(row); print(": "); 146 xprintf("%02X: %032lb\n", row, bitrev32(matrix_get_row(row)));
147 print_bin_reverse32(matrix_get_row(row));
148 print("\n");
149 } 147 }
150} 148}
151 149