mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-04-28 03:33:26 +02:00
Adding macro for easy debug.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
11
src/apdu.h
11
src/apdu.h
@@ -48,8 +48,19 @@ extern int register_app(app_t * (*)());
|
||||
printf("\r\n");\
|
||||
} printf("\r\n"); \
|
||||
}
|
||||
#define DEBUG_DATA(_p, _s) \
|
||||
{ \
|
||||
printf("Data %s (%d bytes):\r\n", #_p, _s); \
|
||||
for (int _i = 0; _i < _s; _i++) \
|
||||
{ \
|
||||
printf("%02X", _p[_i]); \
|
||||
} \
|
||||
printf("\n"); \
|
||||
}
|
||||
|
||||
#else
|
||||
#define DEBUG_PAYLOAD(_p,_s)
|
||||
#define DEBUG_DATA(_p,_s)
|
||||
#endif
|
||||
|
||||
extern uint8_t num_apps;
|
||||
|
||||
Reference in New Issue
Block a user