Skip to content

ESP reboot on using PSTR() within sprintf function call #484

Description

This results into a reboot:

char str[80];
sprintf(str,PSTR("This is a demo: %s for sprintf from flash"),"test123");
Serial.println(str);

Or should I be using sprint_P() but that seems unavailable on ESP.
How to use progmem strings as param to sprintf() ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions