using define RS485_DEVICE instead of constant