Sign in to our website and become an InMoov member. It will allow you to post message, pictures, and share with others InMoov builders. It's just one click away!
Username or Email Address
Password
Remember Me
Robert Anderson posted an update 4 years ago
Hi All, New here, I’m having a problem with the code for Arduino, it comes up with this…….Arduino: 1.8.13 (Windows 10), Board: “Arduino Uno”
In file included from sketch\LinkedList.h:72:0,
from sketch\MrlComm.cpp:10:
sketch\LinkedList.cpp: In instantiation of ‘ListNode* LinkedList::getNode(int) [with T = Device*]’:
sketch\LinkedList.cpp:182:29: required from ‘T LinkedList::get(int) [with T = Device*]’
sketch\MrlComm.cpp:228:38: required from here
LinkedList.cpp:53:10: error: cannot convert ‘bool’ to ‘ListNode*’ in return
return false;
^~~~~
sketch\LinkedList.cpp: In instantiation of ‘ListNode* LinkedList::getNode(int) [with T = Pin*]’:
sketch\LinkedList.cpp:170:29: required from ‘T LinkedList::remove(int) [with T = Pin*]’
sketch\MrlComm.cpp:297:24: required from here
exit status 1
cannot convert ‘bool’ to ‘ListNode*’ in return
Any ideas? Thanks Robert
There are two options here to solve your problem. 1) and the better method is to go to the MRL site and search the problem there, there was a solution given there or talk to Grog or Kwatter on the MRL site. 2) install an older version of the Arduino IDE 1.8.9 works well. The problem arises from a change in the Arduino IDE and the way it interprets some code. Same problem occurs with Marlin 1.1.9 🙂
Hello, with the new version of Arduino IDE, replace the line « return false » by « return NULL »
That was it 🙂 Thanks qwenael 🙂
Many many Thanks….I shall give it a go
I dropped down to Arduino IDE 1.8.9 and everything worked as it should…..Thanks again for your help people 🙂