Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Serial.write(0x00) problem on teensy 3.0

  1. #1

    Question Serial.write(0x00) problem on teensy 3.0

    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.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    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.
    Attached Files Attached Files

  3. #3
    thx Paul, i will be looking for the 1.13 relase =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts