Serial.write(0x00) problem on teensy 3.0

cTn

Active member
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.
 
Opps. I should have known better, since I was the one who submitted this fix for Arduino....

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

Attachments

  • usb_serial.h
    2.4 KB · Views: 246
Back
Top