Modbus compile error Arduino
Open up SimpleModbusSlave.c.  Check the format of modbus_configure() matches what you have.

Open up SimpleModbusSlave.h. Check the define for SERIAL_8N2 exists.

I'm guessing it should be

modbus_configure(9600, 1, 2, HOLDING_REGS_SIZE);