mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-10 17:05:33 +00:00
bl602 boot counter - this breaks other paltforms
This commit is contained in:
@ -212,11 +212,7 @@ int http_fn_index(http_request_t *request) {
|
||||
|
||||
if(http_getArg(request->url,"restart",tmpA,sizeof(tmpA))) {
|
||||
poststr(request,"<h5> Module will restart soon</h5>");
|
||||
#if WINDOWS
|
||||
|
||||
#else
|
||||
RESET_ScheduleModuleReset(3);
|
||||
#endif
|
||||
}
|
||||
|
||||
poststr(request,"<form action=\"cfg\"><input type=\"submit\" value=\"Config\"/></form>");
|
||||
@ -228,7 +224,8 @@ int http_fn_index(http_request_t *request) {
|
||||
|
||||
poststr(request,"<form action=\"about\"><input type=\"submit\" value=\"About\"/></form>");
|
||||
|
||||
hprintf128(request,"<h3>Cfg size: %i, change counter: %i, ota counter: %i!</h3>",sizeof(g_cfg),g_cfg.changeCounter,g_cfg.otaCounter);
|
||||
hprintf128(request,"<h3>Cfg size: %i, change counter: %i, ota counter: %i, boot fails %i!</h3>",
|
||||
sizeof(g_cfg),g_cfg.changeCounter,g_cfg.otaCounter,Main_GetLastRebootBootFailures());
|
||||
|
||||
poststr(request,htmlReturnToMenu);
|
||||
HTTP_AddBuildFooter(request);
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
#include "../jsmn/jsmn_h.h"
|
||||
#include "../ota/ota.h"
|
||||
#include "../hal/hal_wifi.h"
|
||||
#include "../hal/hal_flashVars.h"
|
||||
#ifdef BK_LITTLEFS
|
||||
#include "../littlefs/our_lfs.h"
|
||||
#endif
|
||||
@ -16,11 +17,8 @@
|
||||
#elif PLATFORM_BL602
|
||||
|
||||
#else
|
||||
#include "../flash_config/flash_config.h"
|
||||
#endif
|
||||
#include "../new_cfg.h"
|
||||
#include "../flash_config/flash_vars_vars.h"
|
||||
#include "../flash_config/flash_vars.h"
|
||||
#include "../new_cfg.h"
|
||||
// Commands register, execution API and cmd tokenizer
|
||||
#include "../cmnds/cmd_public.h"
|
||||
|
||||
@ -955,10 +953,10 @@ static int http_rest_get_flash_vars_test(http_request_t *request){
|
||||
p = &data;
|
||||
} else {
|
||||
for (i = 0; i < increment; i++){
|
||||
increment_boot_count();
|
||||
HAL_FlashVars_IncreaseBootCount();
|
||||
}
|
||||
for (i = 0; i < len; i++){
|
||||
boot_complete();
|
||||
HAL_FlashVars_SaveBootComplete();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user