Skip to content

Conversation

me-no-dev
Copy link
Collaborator

No description provided.

@me-no-dev
Copy link
Collaborator Author

@igrr is travis borked?

As discussed, such functionality should not be expected from printf
@codecov-io
Copy link

codecov-io commented Jul 12, 2016

Current coverage is 27.64%

No coverage report found for master at 217ba9e.

Powered by Codecov. Last updated by 217ba9e...e0b116e

@@ -63,6 +63,53 @@ size_t Print::printf(const char *format, ...) {
return len;
}

size_t Print::printf(const __FlashStringHelper * format, ...) {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about introducing Print:vprintf(PGM_P format, va_list argp) and make the other 2 use it?

size_t Print::printf(const __FlashStringHelper * format, ...) {
    va_list arg;
    va_start(arg, format);
    PGM_P fmt = reinterpret_cast<PGM_P>(format);
    size_t len = vprintf(fmt, arg);
    va_end(arg);
    return len;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed that printf all together. Check the latest commit

Copy link
Contributor

Choose a reason for hiding this comment

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

Good enough.

@me-no-dev me-no-dev merged commit e35ebf1 into esp8266:master Jul 15, 2016
@me-no-dev me-no-dev deleted the printf-flash-helper branch July 15, 2016 07:15
@hallard
Copy link
Contributor

hallard commented Jul 18, 2016

@me-no-dev
thanks, I was waiting for this one for so long....

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

Successfully merging this pull request may close these issues.

4 participants