Use of Arduino ModbusRTU_Slave_RS485-1.0.2

I am using a custom Atmega 2560 board. Using Modbus RTU SLave RS485 for communication
While compiling I get the following error. What could be the possible reason?

C:\Users\Admin\Documents\Arduino\libraries\ModbusRTU_Slave_RS485-1.0.2\utility/LinkedList.h:101:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

root=false;


Using library ModbusRTU_Slave_RS485-1.0.2 at version 1.0.2 in folder: C:\Users\Admin\Documents\Arduino\libraries\ModbusRTU_Slave_RS485-1.0.2
Using library UTFT in folder: C:\Users\Admin\Documents\Arduino\libraries\UTFT (legacy)
Using library SPI at version 1.0 in folder: C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\libraries\SPI
Using library MFRC522 at version 1.4.4 in folder: C:\Users\Admin\Documents\Arduino\libraries\MFRC522
exit status 1
Error compiling for board Arduino Mega or Mega 2560.

[Text_Font_07_11_19_hebrew.ino|attachment](upload://zgT3hXW0xvMMECZfh0HUnz9khm8.ino) (12.2 KB)

why do you have 2 lines with

#include <ModbusRTUSlave.h>

normally, this shouldn't be a problem but since the compiler is reporting a error in the header file, maybe it is

C:\Users\Admin\Documents\Arduino\libraries\ModbusRTU_Slave_RS485-1.0.2\utility/LinkedList.h:101:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

Yes that was by mistake. Anyways I deleted the second one , but still the problem remains

Issue resolved
The problem was with the LinkedList.h in the utilities folder in the ModbusRTU_Slave_RS485-1.0.2 library.
The LinkedList.h file is old and is to be replaced with a new one.

Thanks