Comments (4)
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?
from mysensors.
Could you also provide the full configure command? That would make it possible to try to reproduce the problem.
from mysensors.
When using ./configure --my-rf24-irq-pin=360
I get the following warnings, confirming that 360 is truncated to 104:
./hal/transport/RF24/driver/RF24.cpp: In function ‘bool RF24_initialize()’:
<command-line>: warning: unsigned conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} changes value from ‘360’ to ‘104’ [-Woverflow]
./hal/transport/RF24/driver/RF24.cpp:522:12: note: in expansion of macro ‘MY_RF24_IRQ_PIN’
hwPinMode(MY_RF24_IRQ_PIN,INPUT);
^~~~~~~~~~~~~~~
In file included from ./MySensors.h:39,
from examples_linux/mysgw.cpp:82:
<command-line>: warning: unsigned conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} changes value from ‘360’ to ‘104’ [-Woverflow]
./hal/architecture/Linux/drivers/core/Arduino.h:40:62: note: in definition of macro ‘digitalPinToInterrupt’
#define digitalPinToInterrupt(pin) RPi.digitalPinToInterrupt(pin)
^~~
./hal/transport/RF24/driver/RF24.cpp:537:48: note: in expansion of macro ‘MY_RF24_IRQ_PIN’
RF24_SPI.usingInterrupt(digitalPinToInterrupt(MY_RF24_IRQ_PIN));
^~~~~~~~~~~~~~~
<command-line>: warning: unsigned conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} changes value from ‘360’ to ‘104’ [-Woverflow]
./hal/architecture/Linux/drivers/core/Arduino.h:40:62: note: in definition of macro ‘digitalPinToInterrupt’
#define digitalPinToInterrupt(pin) RPi.digitalPinToInterrupt(pin)
^~~
./hal/transport/RF24/driver/RF24.cpp:539:40: note: in expansion of macro ‘MY_RF24_IRQ_PIN’
attachInterrupt(digitalPinToInterrupt(MY_RF24_IRQ_PIN), RF24_irqHandler, FALLING);
^~~~~~~~~~~~~~~
./hal/architecture/Linux/MyMainLinuxGeneric.cpp: In function ‘void handle_sigint(int)’:
<command-line>: warning: unsigned conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} changes value from ‘360’ to ‘104’ [-Woverflow]
./hal/architecture/Linux/MyMainLinuxGeneric.cpp:45:18: note: in expansion of macro ‘MY_RF24_IRQ_PIN’
detachInterrupt(MY_RF24_IRQ_PIN);
from mysensors.
My complete configure command getting this error is
./configure --spi-spidev-device=/dev/spidev1.0 --my-transport=rf24 --my-rf24-channel=76 --my-rf24-ce-pin=117 --my-rf24-cs-pin=227 --my-rf24-irq-pin=360 --my-rf24-pa-level=RF24_PA_MAX
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.
Without it compiles and seams to run fine eaven though all warnings.
Attaching my output from make.
make.txt
from mysensors.
Related Issues (20)
- RPI mqtt gateway not working with user/password authentication HOT 7
- Let the Butler report be clearer on where to add Doxygen comments
- Watchdog timer overflow error for big timeout HOT 3
- PJON driver produces warning and lets fail CI and Toll Gate
- MySensors entities are not properly set when activating scenes/automations in Home Assistant HOT 43
- Improve log parser (capabilities + missing messages)
- NRF24 gateway depends on the deprecated GPIO Linux interface HOT 3
- Fixing V_FLOW data type measurement unit HOT 11
- Dead Project HOT 1
- feature request: support for ESP32 HW Ethernet
- MySensors gateway support for 64-bit OS on RPI (gcc cpu flags)
- Mysensors RFM69 gateway compilation error on 64-bit OS (RFM69_MAX_PACKET_LEN) HOT 2
- Documentation change for Arduino pro micro pinout for serial gateway HOT 2
- "make" and "config file" errors
- Raspberry pi Gateway with IRQ doesn't compile HOT 4
- RPi Latest development branch mysgw do not work with raspbian 64bit
- RPi interrupt management not working on latest Linux version (6.6) HOT 2
- Compile error with ESP32-S2 Feather and MySensor Example Sketch HOT 4
- How many of you are using PJON? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysensors.