Compilation fixes

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-01-13 18:48:40 +01:00
parent 9bdde87b63
commit 5d2dd5aa75
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3
3 changed files with 2 additions and 5 deletions

View file

@ -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"); \
}

View file

@ -20,6 +20,7 @@
#define _RANDOM_H_
#include <stdlib.h>
#include <stdint.h>
#ifndef ENABLE_EMULATION
#include "pico/stdlib.h"
#endif

View file

@ -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 };