127
127
extern " C" unsigned long millis (void );
128
128
129
129
// declare a static string
130
- #define P (name ) static const prog_uchar name[] PROGMEM
130
+ #define P (name ) static const unsigned char name[] PROGMEM
131
131
132
132
// returns the number of elements in the array
133
133
#define SIZE (array ) (sizeof (array) / sizeof (*array))
@@ -205,13 +205,13 @@ class WebServer: public Print
205
205
206
206
// output a string stored in program memory, usually one defined
207
207
// with the P macro
208
- void printP (const prog_uchar *str);
208
+ void printP (const unsigned char *str);
209
209
210
210
// 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); }
212
212
213
213
// 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);
215
215
216
216
// output HTML for a radio button
217
217
void radioButton (const char *name, const char *val,
@@ -403,7 +403,7 @@ size_t WebServer::write(const char *buffer, size_t length)
403
403
return m_client.write ((const uint8_t *)buffer, length);
404
404
}
405
405
406
- void WebServer::writeP (const prog_uchar *data, size_t length)
406
+ void WebServer::writeP (const unsigned char *data, size_t length)
407
407
{
408
408
// copy data out of program memory into local storage, write out in
409
409
// 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)
425
425
m_client.write (buffer, bufferEnd);
426
426
}
427
427
428
- void WebServer::printP (const prog_uchar *str)
428
+ void WebServer::printP (const unsigned char *str)
429
429
{
430
430
// copy data out of program memory into local storage, write out in
431
431
// chunks of 32 bytes to avoid extra short TCP/IP packets
0 commit comments