mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-09-18 20:04:42 -04:00
Grow largest frame length to 512 bytes
This commit is contained in:
parent
2e2ca04ab7
commit
8fd0fca967
5 changed files with 33 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2022 - Tillitis AB
|
||||
* Copyright (C) 2022, 2023 - Tillitis AB
|
||||
* SPDX-License-Identifier: GPL-2.0-only
|
||||
*/
|
||||
|
||||
|
@ -47,8 +47,8 @@ int parseframe(uint8_t b, struct frame_header *hdr)
|
|||
case LEN_32:
|
||||
hdr->len = 32;
|
||||
break;
|
||||
case LEN_128:
|
||||
hdr->len = 128;
|
||||
case LEN_512:
|
||||
hdr->len = 512;
|
||||
break;
|
||||
default:
|
||||
// Unknown length
|
||||
|
@ -82,8 +82,8 @@ void fwreply(struct frame_header hdr, enum fwcmd rspcode, uint8_t *buf)
|
|||
break;
|
||||
|
||||
case FW_RSP_LOAD_APP_DATA_READY:
|
||||
len = LEN_128;
|
||||
nbytes = 128;
|
||||
len = LEN_512;
|
||||
nbytes = 512;
|
||||
break;
|
||||
|
||||
case FW_RSP_GET_UDI:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue