Added Defines, fixed broken function call
This commit is contained in:
parent
ebb739a3a0
commit
d3e44125a2
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user