You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I use Arduino 1.8.11 and Micro:bit, at compile time (SoftwareSerialExample.ino), the following error is displayed, what is the problem?
C:\Users\Royal\Documents\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:197:19: error: void value not ignored as it ought to be
_intMask = attachInterrupt(_receivePin, handle_interrupt, RISING);
^
C:\Users\Royal\Documents\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:202:19: error: void value not ignored as it ought to be
_intMask = attachInterrupt(_receivePin, handle_interrupt, FALLING);
^
exit status 1
Error compiling for board BBC micro:bit.
The text was updated successfully, but these errors were encountered:
The attachInterrupt() function from your board core is a void function, so try another board support package that returns an int from attachInterrupt()
No, it's to do with whatever board support package you use.
If you are using Sandeeps BSP then it needs this sandeepmistry/arduino-nRF5#205
Yes, it's been there a while. The change you need is in WInterrupts.c. And FYI, it's not a hack - it changes the implementation of attachInterrupt() to be inline with the Arduino BSPs
Hi,
I use Arduino 1.8.11 and Micro:bit, at compile time (SoftwareSerialExample.ino), the following error is displayed, what is the problem?
The text was updated successfully, but these errors were encountered: