fixed on stable version of libmodbus 3.0.5

Change-Id: Ife95126c68a571b838c124250c84063a48345115