main/updates.c

changeset 1
ad2c8b13eb88
parent 0
b74b0e4902c3
child 4
6d1f512cd074
equal deleted inserted replaced
0:b74b0e4902c3 1:ad2c8b13eb88
4 */ 4 */
5 5
6 #include "config.h" 6 #include "config.h"
7 7
8 8
9 #define BUFFSIZE 1024 9 #define BUFFSIZE 1024 ///< Download buffer size
10 static char ota_write_data[BUFFSIZE + 1] = { 0 }; 10 static char ota_write_data[BUFFSIZE + 1] = { 0 };
11
12 static const char *TAG = "update"; 11 static const char *TAG = "update";
13 12
14 extern sButton Buttons[MAXBUTTONS]; 13 extern sButton Buttons[MAXBUTTONS];
15 extern int Main_Screen; 14 extern int Main_Screen;
16 15
21 esp_http_client_cleanup(client); 20 esp_http_client_cleanup(client);
22 } 21 }
23 22
24 23
25 24
25 /**
26 * @brief Run update procedure
27 */
26 void run_update(void) 28 void run_update(void)
27 { 29 {
28 char temp[64]; 30 char temp[64];
29 esp_err_t err; 31 esp_err_t err;
30 const esp_partition_t *update_partition = NULL; 32 const esp_partition_t *update_partition = NULL;

mercurial