-
-
Notifications
You must be signed in to change notification settings - Fork 894
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
High GPIO pin number doesn't work when compiling mysgw #1538
Comments
attachInterrupt takes an uint8_t, so any value above 255 will result in whatever C does when things don't fit (360 - 256 is 104 so I guess it just ignores the higher bits). This normally result in warnings during compilation. Could you post the full output of the compilation? |
Could you also provide the full configure command? That would make it possible to try to reproduce the problem. |
When using
|
My complete configure command getting this error is
When compiling I get a lot of warnings about different vars getting truncated both with and without specifying a IRQ-pin, in both cases it compiles sucsessfully but with the IRQ-pin specified I get the previous error at runtime. Attaching my output from make. |
At least in these locations
(and the header file of course) EDIT: Looking at this some more and it seems that all the instances of |
I'm trying to compile mysgw with the IRQ pin set to 360 wich is the pin number for my SBC(Orange Pi 3 LTS)
but after compiling the number has been changed to 104 and that causes an error at runtime.
Works fine without specifying an IRQ pin, probably because all other pin-numbers are < 255
The text was updated successfully, but these errors were encountered: