~ruther/qmk_firmware

5c5312c508ad40c418c321756d933e7ebcecb90a — Mathias Andersson 12 years ago 862a006
Update Phantom debug print

This updates the Phantom project to use the new debug print functions.
2 files changed, 2 insertions(+), 5 deletions(-)

M keyboard/phantom/keymap.c
M keyboard/phantom/matrix.c
M keyboard/phantom/keymap.c => keyboard/phantom/keymap.c +0 -1
@@ 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"


M keyboard/phantom/matrix.c => keyboard/phantom/matrix.c +2 -4
@@ 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)));
    }
}