I keep getting this error when I try to compile the arduino mrlcomm

 

Uploaded Fri Jul 24 20:49:58 EDT 2020 Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
In file included from sketch\LinkedList.h:72:0,
 
                 from sketch\MrlComm.cpp:10:
 
sketch\LinkedList.cpp: In instantiation of 'LinkedList<T>::~LinkedList() [with T = Device*]':
 
sketch\MrlComm.cpp:29:18:   required from here
 
sketch\LinkedList.cpp:21:13: warning: ISO C++ forbids comparison between pointer and integer [-fpermissive]
 
   while(root!=false) {
 
         ~~~~^~~~~~~
 
sketch\LinkedList.cpp: In instantiation of 'LinkedList<T>::~LinkedList() [with T = Pin*]':
 
sketch\MrlComm.cpp:29:18:   required from here
 
sketch\LinkedList.cpp:21:13: warning: ISO C++ forbids comparison between pointer and integer [-fpermissive]
 
sketch\LinkedList.cpp: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = Device*]':
 
sketch\LinkedList.cpp:182:29:   required from 'T LinkedList<T>::get(int) [with T = Device*]'
 
sketch\MrlComm.cpp:228:38:   required from here
 
LinkedList.cpp:53:10: error: cannot convert 'bool' to 'ListNode<Device*>*' in return
 
   return false;
 
          ^~~~~
 
sketch\LinkedList.cpp: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = Pin*]':
 
sketch\LinkedList.cpp:170:29:   required from 'T LinkedList<T>::remove(int) [with T = Pin*]'
 
sketch\MrlComm.cpp:297:24:   required from here
 
LinkedList.cpp:53:10: error: cannot convert 'bool' to 'ListNode<Pin*>*' in return
 
exit status 1
Exit Value : 0

1Robomaker

3 years 8 months ago

In reply to by GroG

Thanks for your time! I know that you are a busy dude. So this fix worked for the UNO.

I ahve a Pro Micro I would like to incorporate into a project. When I try to compile the same code I get this error:

Arduino: 1.8.13 (Windows 10), Board: "Arduino Micro"
 
F:\1robomaker\Robot Lab\resource\Arduino\MrlComm\MrlComm.ino: In function 'void setup()':
 
MrlComm:89:22: error: no matching function for call to 'MrlComm::begin(Serial_&)'
 
  mrlComm.begin(Serial);
 
                      ^
 
In file included from F:\1robomaker\Robot Lab\resource\Arduino\MrlComm\MrlComm.ino:53:0:
 
sketch\MrlComm.h:166:10: note: candidate: void MrlComm::begin(HardwareSerial&)
 
     void begin(HardwareSerial& serial);
 
          ^~~~~
 
sketch\MrlComm.h:166:10: note:   no known conversion for argument 1 from 'Serial_' to 'HardwareSerial&'
 
exit status 1
 
no matching function for call to 'MrlComm::begin(Serial_&)'
 
 
 
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 

1Robomaker

3 years 7 months ago

In reply to by 1Robomaker

Any thoughts on the Arduino micro issue as previously posted?

T