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: xtimer_msg_receive_timeout: initialize values #5216

Merged
merged 2 commits into from
Mar 31, 2016

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Mar 31, 2016

Fixes #4372

@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: tests Area: tests and testing framework Area: timers Area: timer subsystems labels Mar 31, 2016
@miri64 miri64 added this to the Release 2016.04 milestone Mar 31, 2016
@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 31, 2016
@haukepetersen
Copy link
Contributor

Looks valid to me, but was there anything that needed also to be documented, like some timer members have to be initialized before usage or so?

@miri64
Copy link
Member Author

miri64 commented Mar 31, 2016

Any problem if I amend it to this PR?

@haukepetersen
Copy link
Contributor

not at all

@haukepetersen
Copy link
Contributor

just making sure we don't forget anything that came up in the discussion in #4372

@miri64
Copy link
Member Author

miri64 commented Mar 31, 2016

Provided the docfix.

@haukepetersen
Copy link
Contributor

i am good with this, @kaspar030: could you please verify!

@@ -180,7 +180,9 @@ void xtimer_usleep_until(uint32_t *last_wakeup, uint32_t usecs);
* The mesage struct specified by msg parameter will not be copied, e.g., it
* needs to point to valid memory until the message has been delivered.
*
* @param[in] timer timer struct to work with
* @param[in] timer timer struct to work with.
* Its xtimer_t::target and xtimer_t::long_target
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:: !? ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-generates references to the fields ;-)

@kaspar030
Copy link
Contributor

Or we just always initialize to zero for those functions?

@miri64
Copy link
Member Author

miri64 commented Mar 31, 2016

Didn't we came to the conclusion that auto-delete wouldn't work then?

@kaspar030
Copy link
Contributor

Yes. Let's go with docs for now. ACK.

@kaspar030 kaspar030 merged commit 757d461 into RIOT-OS:master Mar 31, 2016
@miri64 miri64 deleted the tests/fix/i4372 branch March 31, 2016 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework Area: timers Area: timer subsystems CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants