mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-07 21:46:10 +02:00
@@ -51,10 +51,6 @@ typedef struct cmd
|
||||
else printf(" ");\
|
||||
if (_j == 7) 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"); \
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define _RANDOM_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#ifndef ENABLE_EMULATION
|
||||
#include "pico/stdlib.h"
|
||||
#endif
|
||||
|
||||
@@ -31,7 +31,7 @@ typedef struct msg_packet {
|
||||
uint16_t len;
|
||||
uint16_t current_len;
|
||||
uint8_t data[CTAP_MAX_PACKET_SIZE];
|
||||
} __packed msg_packet_t;
|
||||
} __attribute__ ((__packed__)) msg_packet_t;
|
||||
|
||||
msg_packet_t msg_packet = { 0 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user