fixed casting bug in gyro FIFO code