From f97dcd6e22680cf4a5e9e0475f0ef192ad3e1187 Mon Sep 17 00:00:00 2001 From: averne Date: Wed, 6 Feb 2019 17:55:57 +0100 Subject: [PATCH] Fix console updates --- nfc/source/main.c | 45 ++++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/nfc/source/main.c b/nfc/source/main.c index 00a4950..4d97758 100644 --- a/nfc/source/main.c +++ b/nfc/source/main.c @@ -9,11 +9,6 @@ // See also libnx nfc.h. -#define PRINT_UPD(fmt, ...) ({ \ - printf(fmt, ## __VA_ARGS__); \ - consoleUpdate(NULL); \ -}) - // Indefinitely wait for an event to be signaled // Break when + is pressed, or if the application should quit (in this case, return value will be non-zero) Result eventWaitLoop(Event *event) { @@ -27,6 +22,7 @@ Result eventWaitLoop(Event *event) { return rc; } +// Print raw data as hexadecimal numbers. void print_hex(void *buf, size_t size) { u8 *data = (u8 *)buf; for (size_t i=0; i