Problem with scaling MPU-6000

Hello,
I'm connecting my Arduino Uno to MPU-6000 sensor and In order to change the scale range of the gyroscope from 250dps to 1000dps
I'm changing this line:

SPIwrite(0x1B,0x00,ChipSelPin1);

with this line:

SPIwrite(0x1B,0x02,ChipSelPin1);

And this is my function for reading the yaw axis of the gyro:

int GyroZ(int ChipSelPin)
{
  uint8_t GyroZ_H=SPIread(0x47,ChipSelPin);
  uint8_t GyroZ_L=SPIread(0x48,ChipSelPin);
  int16_t GyroZ=GyroZ_H<<8|GyroZ_L;
  return(GyroZ);
}

But nothing in the output changes(the readings are from -32768 to 32768). Can anyone help me with this problem, what else should I do or am I doing something wrong? Thanks.

But nothing in the output changes(the readings are from -32768 to 32768).

Since that range is the limit of an int, I'm not sure why you expect a (larger?) range.

A quick look at the datasheet here and page 14 shows the Gyro range select bits are 3 & 4 so writing 0x02 will not effect the bits your hoping to.