Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fork
libwebsockets
Commits
6104a25f
Commit
6104a25f
authored
6 years ago
by
Fredrik Fornstad
Committed by
Andy Green
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix QTA erase after factory partition update
parent
fd810f19
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/libwebsockets/lws-esp32.h
+1
-1
1 addition, 1 deletion
include/libwebsockets/lws-esp32.h
lib/plat/esp32/esp32-helpers.c
+2
-4
2 additions, 4 deletions
lib/plat/esp32/esp32-helpers.c
with
3 additions
and
5 deletions
include/libwebsockets/lws-esp32.h
+
1
−
1
View file @
6104a25f
...
...
@@ -109,7 +109,7 @@ static LWS_INLINE void uv_close(uv_handle_t *h, void *v)
#define LWS_MAGIC_REBOOT_TYPE_REQ_FACTORY 0xb00bcafe
#define LWS_MAGIC_REBOOT_TYPE_FORCED_FACTORY 0xfaceb00b
#define LWS_MAGIC_REBOOT_TYPE_FORCED_FACTORY_BUTTON 0xf0cedfac
#define LWS_MAGIC_REBOOT_TYPE_REQ_FACTORY_ERASE_OTA 0xfac0eeee
/* user code provides these */
...
...
This diff is collapsed.
Click to expand it.
lib/plat/esp32/esp32-helpers.c
+
2
−
4
View file @
6104a25f
...
...
@@ -1032,14 +1032,12 @@ lws_esp_ota_get_boot_partition(void)
}
}
/* destroy our OTA image header */
spi_flash_erase_range
(
ota
->
address
,
4096
);
/*
*
with no viable OTA image
, we will come back up in
*
We send a message to the bootloader to erase the OTA header
, we will come back up in
* factory where the user can reload the OTA image
*/
lwsl_notice
(
" FACTORY copy successful, rebooting
\n
"
);
lws_esp32_restart_guided
(
LWS_MAGIC_REBOOT_TYPE_REQ_FACTORY_ERASE_OTA
);
retry:
esp_restart
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment