Fix compiler error.

This commit is contained in:
Henrik Ekblad
2014-09-07 23:58:18 +02:00
committed by Patrick Fallberg
parent cc00bedaa1
commit ba098a95e2
+1 -1
View File
@@ -121,7 +121,7 @@ inline MyMessage& build (MyMessage &msg, uint8_t sender, uint8_t destination, ui
char *MyMQTT::getType(char *b, const char **index) { char *MyMQTT::getType(char *b, const char **index) {
char *q = b; char *q = b;
char *p = (char *)pgm_read_ptr(index); char *p = (char *)pgm_read_word(index);
while (*q++ = pgm_read_byte(p++)); while (*q++ = pgm_read_byte(p++));
*q=0; *q=0;
return b; return b;