• Robert Anderson posted an update 3 months 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

    LinkedList.cpp:53:10: error: cannot convert ‘bool’ to ‘ListNode*’ in return

    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 🙂