stanleyhuangyc / ArduinoOBD

OBD-II library and sketches for Arduino
http://freematics.com
977 stars 519 forks source link

Added const keyword to PROGMEM variable to address a compile error. #24

Closed petnic closed 5 years ago

petnic commented 9 years ago

In file included from /Users/petersni/Desktop/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0, from LCD4884.h:21, from LCD4884.cpp:17: font_6x8.h:6:29: error: variable 'font6_8' must be const in order to be put into read-only section by means of 'attribute((progmem))' unsigned char font6_8[][6] PROGMEM = ^ font_big.h:9:39: error: variable 'big_number' must be const in order to be put into read-only section by means of 'attribute((progmem))' unsigned char big_number[13][3][16] PROGMEM = { ^ Error compiling.