mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-10 09:18:26 +02:00
Added macro to disable APDU debug.
It will speed up the device notably. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -36,6 +36,7 @@ extern int register_app(app_t * (*)());
|
||||
|
||||
extern const uint8_t historical_bytes[];
|
||||
|
||||
#ifdef DEBUG_APDU
|
||||
#define DEBUG_PAYLOAD(_p,_s) { \
|
||||
printf("Payload %s (%d bytes):\r\n", #_p,_s);\
|
||||
for (int _i = 0; _i < _s; _i += 16) {\
|
||||
@@ -52,7 +53,9 @@ extern const uint8_t historical_bytes[];
|
||||
printf("\r\n");\
|
||||
} printf("\r\n"); \
|
||||
}
|
||||
|
||||
#else
|
||||
#define DEBUG_PAYLOAD(_p,_s)
|
||||
#endif
|
||||
|
||||
struct apdu {
|
||||
uint8_t *header;
|
||||
|
||||
Reference in New Issue
Block a user