Compilation fixes
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
9bdde87b63
commit
5d2dd5aa75
3 changed files with 2 additions and 5 deletions
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue