Skip to content

Commit c6da87f

Browse files
committed
Fixed warning about progmem attribute
Local variables can't be declared with PROGMEM and don't need to be when pointing to a PROGMEM address.
1 parent 452df00 commit c6da87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/cores/arduino/Print.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ size_t Print::write(const uint8_t *buffer, size_t size)
4141

4242
size_t Print::print(const __FlashStringHelper *ifsh)
4343
{
44-
const char PROGMEM *p = (const char PROGMEM *)ifsh;
44+
const char *p = (const char *)ifsh;
4545
size_t n = 0;
4646
while (1) {
4747
unsigned char c = pgm_read_byte(p++);

0 commit comments

Comments
 (0)