Change the line in question to:
Wire.write((byte) cmdByte); // Send Command Byte
Or better still, change:
#define cmdByte (0x00) //Command byte
to:
const byte cmdByte = 0x00; //Command byte
Change the line in question to:
Wire.write((byte) cmdByte); // Send Command Byte
Or better still, change:
#define cmdByte (0x00) //Command byte
to:
const byte cmdByte = 0x00; //Command byte