Arduino Due 1.5.4 r2, Serial.write (0x00); errors in compiling.

Hello,

I just wanted to find out if anyone knows why this does not work on the new Due board, it does however work on my Mega 2560?

void setup(){

    Serial.begin(9600);

}

void loop(){

    Serial.write(0x00);

}

I get these errors in compiling.

sketch_sep25a.ino: In function 'void loop()':
sketch_sep25a:7: error: call of overloaded 'write(int)' is ambiguous
C:\Program Files\Arduino\hardware\arduino\sam\cores\arduino/UARTClass.h:47: note: candidates are: virtual size_t UARTClass::write(uint8_t)
C:\Program Files\Arduino\hardware\arduino\sam\cores\arduino/Print.h:49: note:                 size_t Print::write(const char*)

** If I change the code to this, it works. **

uint_8 variableA = {0x00};

void setup(){

    Serial.begin(9600);

}

void loop(){

    Serial.write(variableA);

}

Is this a change applied to the Due.

Thanks in advance.

I just wanted to find out if anyone knows why this does not work on the new Due board, it does however work on my Mega 2560?

Yes. And, no, it's not likely that it works on the Mega, either, unless you are using a different (older) version of the IDE to compile and the code for it.

That particular message has been discussed too many times on this forum. Clearly, you failed to search.

Is this a change applied to the Due.

No.