PDA

View Full Version : Serial.write(0x00) problem on teensy 3.0



cTn
02-08-2013, 10:45 AM
Hi, i don't know if this is "expected" but writing 0x00 directly to Serial.write results in compiler error "error: call of overloaded 'write(int)' is ambiguous
I should note that this works on arduino without a problem.

Of course this can be fixed by simply casting a type Serial.write((uint8_t) 0x00);
But you must agree that's a really "ugly" approach.

PaulStoffregen
02-08-2013, 12:59 PM
Opps. I should have known better, since I was the one who submitted this fix for Arduino (http://code.google.com/p/arduino/issues/detail?id=527)....

Here's an updated usb_serial.h. Copy to hardware/teensy/cores/teensy3. This will be in version 1.13.

cTn
02-08-2013, 01:05 PM
thx Paul, i will be looking for the 1.13 relase =)