aboutsummaryrefslogtreecommitdiff
path: root/keyboard/phantom
diff options
context:
space:
mode:
authorMathias Andersson <wraul@dbox.se>2013-05-18 12:52:04 +0200
committerMathias Andersson <wraul@dbox.se>2013-05-27 20:52:28 +0200
commit5c5312c508ad40c418c321756d933e7ebcecb90a (patch)
tree9290f6a8e71bb1d9702c9467c5a6d56b2c180e33 /keyboard/phantom
parent862a006190f2ed568d68e22a25b878a3d6368bc0 (diff)
downloadqmk_firmware-5c5312c508ad40c418c321756d933e7ebcecb90a.tar.gz
qmk_firmware-5c5312c508ad40c418c321756d933e7ebcecb90a.zip
Update Phantom debug print
This updates the Phantom project to use the new debug print functions.
Diffstat (limited to 'keyboard/phantom')
-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