Skip to content
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

Bug Fix: OTA_Resume only restarts selftest timer while selftesting #439

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

dachalco
Copy link
Contributor

@dachalco dachalco commented Jun 9, 2022

Description

Fix bug detailed in issue #421 and add test coverage for the changes.

Test Bed

Component Version
Platform esp32-devkitc
OTA library latest:main
CSDK latest:main

For integration tests, I modified the OTA MQTT demo provided by the csdk. Test application initializes/starts OTA agent, then calls OTA_Resume while no OTAs are pending or in flight.

Integration Test Logs (Before)
Integration Test Logs (After)

Note my added logs containing "Int-Test". Before the fix, you'll notice the log indicating when OTA_Resume was called and the repeated cycles of self-test timer fire then reboot. With the fix, these app logs were retained, but not reported per the fix.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • My code is formatted using Uncrustify.
  • I have read and applied the rules stated in CONTRIBUTING.md. There isn't one.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@dachalco dachalco marked this pull request as ready for review June 10, 2022 05:02
@dachalco dachalco requested a review from ActoryOu June 16, 2022 23:53
@dachalco dachalco changed the title fix: OTA_Resume only restarts selftest timer while selftesting Bug Fix: OTA_Resume only restarts selftest timer while selftesting Jun 17, 2022
@dachalco dachalco added the bug Something isn't working label Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants