mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-07 07:47:43 +01:00
ota cosmetic (#1762)
* step 1 * Update obk_main.mk * Update OpenBeken.mk * Update obk_main.cmake * Update hal_ota_bk7231.c * Update hal_ota_bk7231.c * m * split * guards * Update hal_ota_bl602.c * Update hal_ota_bl602.c * bk * better * header * w * TMP * tttttttt * Update rest_interface.c * hal_ota is xradio header.... * undoi * header * move * xradio * read * fx * t * makefile * move out xradi o read * fx * move out esp * move out bl602 * move out beken, ln * move out w8 * ecr tr * realtek * Update rest_interface.c * win * forgot * tr6260 split * Update hal_ota_tr6260.c * rename ota_progress * use OTA_GetProgress on all paltforms * fx * not needed header * call OTA_IncrementProgress on OTA so we at laest know that something is happening
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include "http_fns.h"
|
||||
#include "../new_pins.h"
|
||||
#include "../new_cfg.h"
|
||||
#include "../ota/ota.h"
|
||||
#include "../hal/hal_ota.h"
|
||||
// Commands register, execution API and cmd tokenizer
|
||||
#include "../cmnds/cmd_public.h"
|
||||
#include "../driver/drv_tuyaMCU.h"
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#elif PLATFORM_XRADIO
|
||||
#include <image/flash.h>
|
||||
#include "ota/ota.h"
|
||||
#include <ota/ota.h>
|
||||
#elif defined(PLATFORM_BK7231N)
|
||||
// tuya-iotos-embeded-sdk-wifi-ble-bk7231n/sdk/include/tuya_hal_storage.h
|
||||
#include "tuya_hal_storage.h"
|
||||
@@ -1045,12 +1045,10 @@ typedef enum {
|
||||
|
||||
#endif
|
||||
|
||||
#if PLATFORM_BK7231N || PLATFORM_BK7231T
|
||||
if (ota_progress() >= 0)
|
||||
if (OTA_GetProgress() >= 0)
|
||||
{
|
||||
hprintf255(request, "<h5>OTA In Progress. Downloaded: %i B Flashed: %06lXh</h5>", OTA_GetTotalBytes(), ota_progress());
|
||||
hprintf255(request, "<h5>OTA In Progress. Downloaded: %i B Flashed: %06lXh</h5>", OTA_GetTotalBytes(), OTA_GetProgress());
|
||||
}
|
||||
#endif
|
||||
if (bSafeMode) {
|
||||
hprintf255(request, "<h5 class='safe'>You are in safe mode (AP mode) because full reboot failed %i times. ",
|
||||
g_bootFailures);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "http_fns.h"
|
||||
#include "../new_pins.h"
|
||||
#include "../new_cfg.h"
|
||||
#include "../ota/ota.h"
|
||||
#include "../hal/hal_ota.h"
|
||||
// Commands register, execution API and cmd tokenizer
|
||||
#include "../cmnds/cmd_public.h"
|
||||
#include "../driver/drv_tuyaMCU.h"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "http_fns.h"
|
||||
#include "../new_pins.h"
|
||||
#include "../new_cfg.h"
|
||||
#include "../ota/ota.h"
|
||||
#include "../hal/hal_ota.h"
|
||||
#include "../hal/hal_wifi.h"
|
||||
#include "../base64/base64.h"
|
||||
#include "http_basic_auth.h"
|
||||
|
||||
@@ -97,5 +97,7 @@ int HTTP_RegisterCallback(const char* url, int method, http_callback_fn callback
|
||||
|
||||
int my_strnicmp(const char* a, const char* b, int len);
|
||||
|
||||
int http_rest_error(http_request_t* request, int code, char* msg);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user