Skip to content

Conversation

@TylerBre
Copy link

sha1.cpp:11:25: error: variable 'sha1InitState' must be const in order to be put into read-only section by means of 'attribute((progmem))'
uint8_t sha1InitState[] PROGMEM = {
^

sha1.cpp:11:25: error: variable 'sha1InitState' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 uint8_t sha1InitState[] PROGMEM = {
                         ^
@TylerBre
Copy link
Author

This fix applies to arduino 1.5.7

@ollemagnusson
Copy link

New error after that change?? What do Chuck mean with that there are changes to sha1.diff?? I don't understand a thing in that file??

This is the new error:

In file included from /Users/olle/Documents/Arduino/libraries/sha1/sha256.cpp:3:0:
/Users/olle/Documents/Arduino/libraries/sha1/sha256.cpp:8:21: error: variable 'sha256K' must be const in order to be put into read-only section by means of 'attribute((progmem))'
uint32_t sha256K[] PROGMEM = {
^
/Users/olle/Documents/Arduino/libraries/sha1/sha256.cpp:21:28: error: variable 'sha256InitState' must be const in order to be put into read-only section by means of 'attribute((progmem))'
uint8_t sha256InitState[] PROGMEM = {

@jesse-c
Copy link

jesse-c commented Jun 6, 2015

@ollemagnusson that's the same type of error that @TylerBre fixes in his pull request. It looks like you're using a copy of the sha1 library outside of Arduino-Websocket. If you want to fix that error simple add const as the message details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants