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

Fix too wide 'word' type -- it should be 16-bit instead of 32-bit #3851

Merged
merged 1 commit into from Nov 19, 2017

Conversation

Mystic-Mirage
Copy link
Contributor

@Mystic-Mirage Mystic-Mirage commented Nov 19, 2017

The word type is an alias for unsigned int. It came directly from original Arduino SDK because ATmega-based boards has 16-bit int. But int for esp8266 board stores 32-bit value so word in meaning combination of two bytes is broken here.

For esp8266 it should be defined 16-bit long explicitly.

@devyte
Copy link
Collaborator

devyte commented Nov 19, 2017

I don't see this really being used anywhere in the code hosted in this repo, and the fix is correct.

@devyte devyte merged commit 117bc87 into esp8266:master Nov 19, 2017
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.

None yet

2 participants