mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-11 01:38:26 +02:00
@@ -51,10 +51,6 @@ typedef struct cmd
|
|||||||
else printf(" ");\
|
else printf(" ");\
|
||||||
if (_j == 7) printf(" ");\
|
if (_j == 7) printf(" ");\
|
||||||
} printf(": "); \
|
} printf(": "); \
|
||||||
for (int _j = 0; _j < MIN(16,_s-_i); _j++) {\
|
|
||||||
printf("%c",(_p)[_i+_j] == 0x0a || (_p)[_i+_j] == 0x0d ? '\\' : (_p)[_i+_j]);\
|
|
||||||
if (_j == 7) printf(" ");\
|
|
||||||
}\
|
|
||||||
printf("\r\n");\
|
printf("\r\n");\
|
||||||
} printf("\r\n"); \
|
} printf("\r\n"); \
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#define _RANDOM_H_
|
#define _RANDOM_H_
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
#ifndef ENABLE_EMULATION
|
#ifndef ENABLE_EMULATION
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ typedef struct msg_packet {
|
|||||||
uint16_t len;
|
uint16_t len;
|
||||||
uint16_t current_len;
|
uint16_t current_len;
|
||||||
uint8_t data[CTAP_MAX_PACKET_SIZE];
|
uint8_t data[CTAP_MAX_PACKET_SIZE];
|
||||||
} __packed msg_packet_t;
|
} __attribute__ ((__packed__)) msg_packet_t;
|
||||||
|
|
||||||
msg_packet_t msg_packet = { 0 };
|
msg_packet_t msg_packet = { 0 };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user