대학 생활/IoT(RaspberryPi, Arduino)

[Arduino] 에러 : must be const in order to be put into read-only section by means of '__attribute__((progmem))'

opid 2015. 2. 24. 18:36

문제점

Time.h 을 사용하려는데 발생하는 에러.


해결방안

Time 라이브러리가 있는 디렉토리에서 DateStrings.cpp 파일에서 PROGMEM을 모두 지우고 실행하였더니 에러가 발생하지않았다. 아래 파일은 PROGMEM을 지운 파일이다.

DateStrings.cpp