Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: made uint8_t const #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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