-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore StartupMode when rebooting due to OTA. #21074
Merged
woody-apple
merged 2 commits into
project-chip:master
from
bzbarsky-apple:fix-mode-select-boot-reason
Jul 23, 2022
Merged
Ignore StartupMode when rebooting due to OTA. #21074
woody-apple
merged 2 commits into
project-chip:master
from
bzbarsky-apple:fix-mode-select-boot-reason
Jul 23, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixes project-chip#19272 This will only work on platforms that actually set boot reasons properly (i.e. probably not Mac/Linux).
woody-apple
approved these changes
Jul 21, 2022
PR #21074: Size comparison from 1d88b32 to 9e7b8a8 Increases (13 builds for cc13x2_26x2, esp32, linux, nrfconnect, p6, telink)
Decreases (4 builds for cc13x2_26x2, cyw30739, telink)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
andy31415
reviewed
Jul 22, 2022
andy31415
approved these changes
Jul 22, 2022
cb966e7
to
2ded613
Compare
PR #21074: Size comparison from e58147e to 2ded613 Increases (17 builds for bl602, cc13x2_26x2, cyw30739, esp32, linux, nrfconnect, p6, telink)
Decreases (3 builds for cc13x2_26x2)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
github-actions bot
pushed a commit
that referenced
this pull request
Jul 23, 2022
Fixes #19272 This will only work on platforms that actually set boot reasons properly (i.e. probably not Mac/Linux). Co-authored-by: Irene Siu (Apple) <98558756+isiu-apple@users.noreply.github.com>
woody-apple
added a commit
that referenced
this pull request
Jul 25, 2022
Fixes #19272 This will only work on platforms that actually set boot reasons properly (i.e. probably not Mac/Linux). Co-authored-by: Irene Siu (Apple) <98558756+isiu-apple@users.noreply.github.com> Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> Co-authored-by: Irene Siu (Apple) <98558756+isiu-apple@users.noreply.github.com>
isiu-apple
added a commit
to isiu-apple/connectedhomeip
that referenced
this pull request
Sep 16, 2022
Fixes project-chip#19272 This will only work on platforms that actually set boot reasons properly (i.e. probably not Mac/Linux). Co-authored-by: Irene Siu (Apple) <98558756+isiu-apple@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #19272
This will only work on platforms that actually set boot reasons
properly (i.e. probably not Mac/Linux).
Problem
See #19272.
Change overview
Change StartupMode handling to ignore the attribute when rebooting for OTA. This is extracted from #20440
Testing
DiagnosticDataProviderImpl::GetBootReason
to returnkSoftwareUpdateCompleted
and verified that in this case the pre-restart CurrentMode value sticks around instead of StartupMode overwriting it.