From 08d56af6f3f21bc110d37f73838c7286326a0035 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 24 Jan 2022 18:01:43 +0100 Subject: [PATCH] Debuging address too Signed-off-by: Pol Henarejos --- hsm2040.h | 1 + 1 file changed, 1 insertion(+) diff --git a/hsm2040.h b/hsm2040.h index fffc8da..1373dac 100644 --- a/hsm2040.h +++ b/hsm2040.h @@ -16,6 +16,7 @@ extern const uint8_t historical_bytes[]; #define DEBUG_PAYLOAD(p,s) { \ TU_LOG1("Payload %s (%d bytes):\r\n", #p,s);\ for (int i = 0; i < s; i += 16) {\ + TU_LOG1("%07Xh : ",i+p);\ for (int j = 0; j < 16; j++) {\ if (j < s-i) TU_LOG1("%02X ",p[i+j]);\ else TU_LOG1(" ");\