Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QJ_500-7c
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
QJ_500-7c
Commits
50382e07
Commit
50382e07
authored
Jul 18, 2024
by
薛小虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: wifi升级失败,5s后重启
parent
02bb448c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
simple_ota_example.c
qianjiang/main/simple_ota_example.c
+10
-0
No files found.
qianjiang/main/simple_ota_example.c
View file @
50382e07
...
...
@@ -144,6 +144,16 @@ void simple_ota_example_task(void *pvParameter)
esp_restart
();
}
else
{
ESP_LOGE
(
TAG
,
"Firmware upgrade failed"
);
for
(
i
=
5
;
i
>
0
;
i
--
)
{
printf
(
"============ System will restart in %d second. ============
\n
"
,
i
);
vTaskDelay
(
1000
/
portTICK_PERIOD_MS
);
}
// printf("============ System rebooting... ============\n");
// printf("==========================================================\n");
// printf("\n");
esp_restart
();
}
while
(
1
)
{
vTaskDelay
(
1000
/
portTICK_PERIOD_MS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment