Added Defines, fixed broken function call

This commit is contained in:
simon 2025-07-26 10:42:31 +02:00
parent ebb739a3a0
commit d3e44125a2
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
static uint8_t updateBuffer[4000]; static uint8_t updateBuffer[UPDATE_BUFFER_SIZE];
static const char *TAG = "ALOX - OTA"; static const char *TAG = "ALOX - OTA";
void start_uart_update(uint8_t msgid, const uint8_t *payload, 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() { void init_ota() {
RegisterCallback(uint8_t msgid, RegisterFunctionCallback callback); // RegisterCallback(uint8_t msgid, RegisterFunctionCallback callback);
} }

View File

@ -1,4 +1,7 @@
#ifndef OTA_UPDATE_H #ifndef OTA_UPDATE_H
#define OTA_UPDATE_H #define OTA_UPDATE_H
#define UPDATE_BUFFER_SIZE 4000
#define UPDATE_PAYLOAD_SIZE 200
#endif #endif