-
Notifications
You must be signed in to change notification settings - Fork 1k
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
terminate called after throwing an instance of 'int' #531
Comments
According to the latest code of RF24 library, the Maybe you will find some warning in the compiler output? |
I am using latest version, compiled from github, no errors or warnings during compile. I have not debugged deeply yet, lack of time :( I will do it. |
whats the solution? |
I'm also getting this error, but it happens in RF24::begin(), on:
|
Arg I feel a bit stupid, there is a check to make sure that the process runs as root in
|
It appears that on Raspberry Pi, the code checks that the process is running as root. When it's not, it throws a very cryptic error (see nRF24#531): terminate called after throwing an instance of 'int' I'm not sure that making it compulsory to run as root is justified, but at least this change improves the error message. After it appears as: terminate called after throwing an instance of 'std::runtime_error' what(): Process should run as root
It appears that on Raspberry Pi, the code checks that the process is running as root. When it's not, it throws a very cryptic error (see nRF24#531): terminate called after throwing an instance of 'int' I'm not sure that making it compulsory to run as root is justified, but at least this change improves the error message. After it appears as: terminate called after throwing an instance of 'std::runtime_error' what(): Process should run as root
It appears that on Raspberry Pi, the code checks that the process is running as root. When it's not, it throws a very cryptic error (see nRF24#531): terminate called after throwing an instance of 'int' I'm not sure that making it compulsory to run as root is justified, but at least this change improves the error message. After it appears as: terminate called after throwing an instance of 'std::runtime_error' what(): Process should run as root
When RF24 wasn't ran as root, it threw a very cryptic error (see #531): `terminate called after throwing an instance of 'int'` This commit will improve that and now it appears as: `terminate called after throwing an instance of 'std::runtime_error' what(): Process should run as root`
Hello,
when I compile the examples on Raspberry Pi 2 model B v1.1 I usually got this error. When I debug the code, method radio.available() returns -1 instead of bool.
I have working SPI
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)
00 00 00 00 FF FF
C0 00 00 00 00 00
00 00 00 FF FF 00
00 00 00 00 00 FF
FF 00 00 00 00 00
3F 80 00 1F 80 00
FF FC
Running out of ideas.
Thanks
M.
The text was updated successfully, but these errors were encountered: