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