From 715728607ae77bebf3ac50fdbdb46639551995e4 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Tue, 15 Sep 2020 08:54:22 +0200 Subject: [PATCH 1/1] firmware: fix maximum size --- firmware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware.c b/firmware.c index 36ef435..e1cf34e 100644 --- a/firmware.c +++ b/firmware.c @@ -47,7 +47,7 @@ #define HEX_BLOCK_LENGTH_644P 256 #define HEX_IMAGE_SIZE_328P 0x7000 #define HEX_IMAGE_SIZE_644P 0xF000 -#define HEX_IMAGE_SIZE_MAX 0xFFFF +#define HEX_IMAGE_SIZE_MAX 0x10000 static uint16_t crc16(uint8_t* buf, int length, uint16_t crc) { -- 2.39.5