mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-04-20 07:08:28 +00:00
Debuging address too
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
af7ef7856b
commit
08d56af6f3
1 changed files with 1 additions and 0 deletions
|
|
@ -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(" ");\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue