You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebServer provides the very handy method printP to print a string stored in
program space.
So, one basically expect that you can write:
server.printP (PSTR("Hello World !")) ;
/* the PSTR macro is defined in avr/pgmspace.h */
Unfortunately, you can't because the parameter for printP is of type
prog_uchar*, whereas the PSTR macro builds a prog_char*.
The fix is very simple, I just replaced all occurrences of prog_uchar by
prog_char in WebServer.h and now I can use the PSTR macro.
Original issue reported on code.google.com by benoit.blanchon on 9 Jul 2010 at 4:46
The text was updated successfully, but these errors were encountered:
Ah, we're using a different macro for the same thing in the webduino examples.
The better fix is adding a second .printP method that takes the other kind of
parameter and calls the first version with a cast. Since it's inlined, there's
no overhead.
Original comment by ben.combee on 9 Jul 2010 at 8:08
Original issue reported on code.google.com by
benoit.blanchon
on 9 Jul 2010 at 4:46The text was updated successfully, but these errors were encountered: