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

unsigned data type but negative value #54

Open
stuartpittaway opened this issue Aug 14, 2020 · 0 comments
Open

unsigned data type but negative value #54

stuartpittaway opened this issue Aug 14, 2020 · 0 comments

Comments

@stuartpittaway
Copy link

In your example https://github.com/smarmengol/Modbus-Master-Slave-for-Arduino/blob/master/examples/RS485_slave/RS485_slave.ino

The array is defined as uint16 but you have a negative entry at the end of the array, throws a compiler error/warning.

uint16_t au16data[16] = { 3, 1415, 9265, 4, 2, 7182, 28182, 8, 0, 0, 0, 0, 0, 0, 1, -1 };

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

No branches or pull requests

1 participant