127127extern " C" unsigned long millis (void );
128128
129129// declare a static string
130- #define P (name ) static const prog_uchar name[] PROGMEM
130+ #define P (name ) static const unsigned char name[] PROGMEM
131131
132132// returns the number of elements in the array
133133#define SIZE (array ) (sizeof (array) / sizeof (*array))
@@ -205,13 +205,13 @@ class WebServer: public Print
205205
206206 // output a string stored in program memory, usually one defined
207207 // with the P macro
208- void printP (const prog_uchar *str);
208+ void printP (const unsigned char *str);
209209
210210 // inline overload for printP to handle signed char strings
211- void printP (const prog_char *str) { printP ((prog_uchar *)str); }
211+ void printP (const char *str) { printP ((unsigned char *)str); }
212212
213213 // output raw data stored in program memory
214- void writeP (const prog_uchar *data, size_t length);
214+ void writeP (const unsigned char *data, size_t length);
215215
216216 // output HTML for a radio button
217217 void radioButton (const char *name, const char *val,
@@ -403,7 +403,7 @@ size_t WebServer::write(const char *buffer, size_t length)
403403 return m_client.write ((const uint8_t *)buffer, length);
404404}
405405
406- void WebServer::writeP (const prog_uchar *data, size_t length)
406+ void WebServer::writeP (const unsigned char *data, size_t length)
407407{
408408 // copy data out of program memory into local storage, write out in
409409 // chunks of 32 bytes to avoid extra short TCP/IP packets
@@ -425,7 +425,7 @@ void WebServer::writeP(const prog_uchar *data, size_t length)
425425 m_client.write (buffer, bufferEnd);
426426}
427427
428- void WebServer::printP (const prog_uchar *str)
428+ void WebServer::printP (const unsigned char *str)
429429{
430430 // copy data out of program memory into local storage, write out in
431431 // chunks of 32 bytes to avoid extra short TCP/IP packets
0 commit comments