mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-26 01:49:18 -04:00
fw: Fix erroneous type in frame header
This commit is contained in:
parent
0ea0eeb967
commit
f13366538e
@ -23,7 +23,7 @@ static uint8_t genhdr(uint8_t id, uint8_t endpoint, uint8_t status,
|
|||||||
static int parseframe(uint8_t b, struct frame_header *hdr);
|
static int parseframe(uint8_t b, struct frame_header *hdr);
|
||||||
static void write(uint8_t *buf, size_t nbytes);
|
static void write(uint8_t *buf, size_t nbytes);
|
||||||
static int read(uint8_t *buf, size_t bufsize, size_t nbytes);
|
static int read(uint8_t *buf, size_t bufsize, size_t nbytes);
|
||||||
static int bytelen(enum cmdlen cmdlen);
|
static size_t bytelen(enum cmdlen cmdlen);
|
||||||
|
|
||||||
static uint8_t genhdr(uint8_t id, uint8_t endpoint, uint8_t status,
|
static uint8_t genhdr(uint8_t id, uint8_t endpoint, uint8_t status,
|
||||||
enum cmdlen len)
|
enum cmdlen len)
|
||||||
@ -165,7 +165,7 @@ static int read(uint8_t *buf, size_t bufsize, size_t nbytes)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// bytelen returns the number of bytes a cmdlen takes
|
// bytelen returns the number of bytes a cmdlen takes
|
||||||
static int bytelen(enum cmdlen cmdlen)
|
static size_t bytelen(enum cmdlen cmdlen)
|
||||||
{
|
{
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ enum status {
|
|||||||
struct frame_header {
|
struct frame_header {
|
||||||
uint8_t id;
|
uint8_t id;
|
||||||
enum endpoints endpoint;
|
enum endpoints endpoint;
|
||||||
enum cmdlen len;
|
size_t len;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*@ -exportlocal @*/
|
/*@ -exportlocal @*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user