]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Update Phantom debug print
authorMathias Andersson <wraul@dbox.se>
Sat, 18 May 2013 10:52:04 +0000 (12:52 +0200)
committerMathias Andersson <wraul@dbox.se>
Mon, 27 May 2013 18:52:28 +0000 (20:52 +0200)
This updates the Phantom project to use the new debug print functions.

keyboard/phantom/keymap.c
keyboard/phantom/matrix.c

index 7433d53ceff83fba7c7f92aafcb8bd021edb2b6e..1d23f2b02d41595d4ff33c069e66442c87b3be34 100644 (file)
@@ -26,7 +26,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "action_macro.h"
 #include "report.h"
 #include "host.h"
-#include "print.h"
 #include "debug.h"
 #include "keymap.h"
 
index 386feea41f589d074265f97b47c028307c718064..49d6b738e6d17b4c58842ce9a5b8449c09df442a 100644 (file)
@@ -100,7 +100,7 @@ uint8_t matrix_scan(void)
             if (prev_bit != curr_bit) {
                 matrix_debouncing[row] ^= ((matrix_row_t)1<<col);
                 if (debouncing) {
-                    debug("bounce!: "); debug_hex(debouncing); print("\n");
+                    dprint("bounce!: "); dprintf("%02X", debouncing); dprintln();
                 }
                 debouncing = DEBOUNCE;
             }
@@ -143,9 +143,7 @@ void matrix_print(void)
 {
     print("\nr/c 0123456789ABCDEF\n");
     for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
-        phex(row); print(": ");
-        print_bin_reverse32(matrix_get_row(row));
-        print("\n");
+        xprintf("%02X: %032lb\n", row, bitrev32(matrix_get_row(row)));
     }
 }