mirror of
https://github.com/andreili/katapult.git
synced 2025-08-23 19:34:06 +02:00
canboot: fix typo
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
9d894c7190
commit
abb966713e
@ -204,7 +204,7 @@ canboot_process_rx(uint32_t id, uint32_t len, uint8_t *data)
|
|||||||
// read into into the page buffer
|
// read into into the page buffer
|
||||||
if (page_pos >= CONFIG_FLASH_PAGE_SIZE)
|
if (page_pos >= CONFIG_FLASH_PAGE_SIZE)
|
||||||
return;
|
return;
|
||||||
else if (page_pos > CONFIG_FLASH_PAGE_SIZE)
|
else if (page_pos + len > CONFIG_FLASH_PAGE_SIZE)
|
||||||
len = CONFIG_FLASH_PAGE_SIZE - cmd_pos;
|
len = CONFIG_FLASH_PAGE_SIZE - cmd_pos;
|
||||||
memcpy(&page_buffer[page_pos], data, len);
|
memcpy(&page_buffer[page_pos], data, len);
|
||||||
page_pos += len;
|
page_pos += len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user