Skip to content

Missing printf link in 1.6.8. #4740

@JulyJim

Description

@JulyJim

I have decided to post this separately from my previous post, just to keep one subject per issue.

I have been using printf since 1.5.x after modifying core print.h.
Now using 1.6.8. and this simple test code turns the Serial.printf red indicating the there is valid printf function somewhere.

void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.printf(FILE);
}

void loop() {
// put your main code here, to run repeatedly:
}

Than I get this compiler error

C:\Documents and Settings\Vaclav\My Documents\Arduino\sketch_mar21c\sketch_mar21c.ino: In function 'void setup()':

:0:8: error: 'class UARTClass' has no member named 'iprintf'

C:\Documents and Settings\Vaclav\My Documents\Arduino\sketch_mar21c\sketch_mar21c.ino:4:10: note: in expansion of macro 'printf'

Serial.printf(FILE);

      ^

exit status 1

Error compiling for board Arduino Due (Programming Port).

Any help would be appreciated, and PLEASE no "post it on Arduino.cc" I am banned for life and it would be over their heads anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions