writeByte not working?

I am using the calibrate code from here: GitHub - hideakitai/MPU9250: Arduino library for MPU9250 Nine-Axis (Gyro + Accelerometer + Compass) MEMS MotionTracking™ Device. When I run the script I get 'Calibrated?: NO'.

When I looked into the code to see why it wasn’t calibrating I found this:

enum EEP_ADDR
{
    [b]EEP_CALIB_FLAG = 0x00,[/b]
    EEP_ACC_BIAS = 0x01,
    EEP_GYRO_BIAS = 0x0D,
    EEP_MAG_BIAS = 0x19,
    EEP_MAG_SCALE = 0x25
};
void saveCalibration(bool b_save = true)
{
   [b] eeprom.writeByte(EEP_CALIB_FLAG, 1);[/b]
}
void loadCalibration()
{
    if (eeprom.readByte(EEP_CALIB_FLAG) == 0x01)
    {
        Serial.println("calibrated? : YES");
    }
}

This shows that the EEP_CALIB_FLAG is 0x00 and not 0x00 which means the eeprom.writeByte(EEP_CALIB_FLAG, 1); line did not write right?

What would cause this and how could it be fixed?
Thank you.

I don't see a eeprom.writeByte() function in the EEPROM library documentation.

Which Arduino board are you using ?
Where did you get the EEPROM library that you are using ?

Please post a complete program that illustrates the problem rather than snippets

By the way, bold attributes do not work inside code tags and you might want to consider whether you meant this

his shows that the EEP_CALIB_FLAG is 0x00 and not 0x00

Apart from anything else, do you actually mean the value of EEP_CALIB_FLAG or the value stored at that EEPROM location

I am using the Arduino Mega.
I just installed this GitHub - hideakitai/MPU9250: Arduino library for MPU9250 Nine-Axis (Gyro + Accelerometer + Compass) MEMS MotionTracking™ Device and then ran the calibration script.