From d3e44125a22f85b43a1bafbdf9d757481790d1ef Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 26 Jul 2025 10:42:31 +0200 Subject: [PATCH] Added Defines, fixed broken function call --- main/ota_update.c | 4 ++-- main/ota_update.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/main/ota_update.c b/main/ota_update.c index 38b7bdf..64b3f92 100644 --- a/main/ota_update.c +++ b/main/ota_update.c @@ -5,7 +5,7 @@ #include #include -static uint8_t updateBuffer[4000]; +static uint8_t updateBuffer[UPDATE_BUFFER_SIZE]; static const char *TAG = "ALOX - OTA"; void start_uart_update(uint8_t msgid, const uint8_t *payload, @@ -46,5 +46,5 @@ void end_uart_update(uint8_t msgid, const uint8_t *payload, size_t payload_len, } void init_ota() { - RegisterCallback(uint8_t msgid, RegisterFunctionCallback callback); + // RegisterCallback(uint8_t msgid, RegisterFunctionCallback callback); } diff --git a/main/ota_update.h b/main/ota_update.h index 2792b78..8f32620 100644 --- a/main/ota_update.h +++ b/main/ota_update.h @@ -1,4 +1,7 @@ #ifndef OTA_UPDATE_H #define OTA_UPDATE_H +#define UPDATE_BUFFER_SIZE 4000 +#define UPDATE_PAYLOAD_SIZE 200 + #endif