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

[tests] Waiting before call to deepsleep to allow buffers to flush #3017

Merged
merged 1 commit into from
Oct 19, 2016

Conversation

bridadan
Copy link
Contributor

@bridadan bridadan commented Oct 13, 2016

Description

Since deepsleep() may shut down the UART peripheral, I added a wait for 10ms to allow for hardware serial buffers to completely flush.

This should be replaced with a better function that checks if the hardware buffers are empty. However, such an API does not exist now, so I'm using the wait_ms() function for now.

Should resolve some of the issues discussed here: #2966

Status

READY

Migrations

If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.

NO

Todos

  • Tests
  • Review by @bulislaw (since you originally submitted the tests)

FYI @sg- and @mmahadevan108

@bulislaw
Copy link
Member

LGTM

@sg- sg- added the needs: CI label Oct 13, 2016
@sg-
Copy link
Contributor

sg- commented Oct 13, 2016

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 0

All builds and test passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants