adjust buffer size to 1024 in read_fpga()