Skip to content

rtc_time: Fix incorrect return value when the calendar is not available. #4480

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

Merged
merged 1 commit into from
Jun 8, 2017

Conversation

pan-
Copy link
Member

@pan- pan- commented Jun 6, 2017

Description

According to the C99 specification "The value (time_t)(-1) is returned if the
calendar time is not available". Before this patch, in such case the function
was returning 0 instead of -1.

Status

READY

Migrations

NO

According to the C99 specification "The value (time_t)(-1) is returned if the
calendar time is not available". Before this patch, in such case the function
was returning 0 instead of -1.
@sg-
Copy link
Contributor

sg- commented Jun 8, 2017

/morph test

@mbed-bot
Copy link

mbed-bot commented Jun 8, 2017

Result: SUCCESS

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

/morph test

Output

mbed Build Number: 490

All builds and test passed!

@sg- sg- merged commit 9122ed6 into ARMmbed:master Jun 8, 2017
@pan- pan- deleted the fix_time_return branch November 14, 2018 10:50
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