dj0tt / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Serial.write(str) and Serial.write(buf, len) don't work on Leonardo #958

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Serial.write("test");
Serial.write((const uint8_t*)"test\n", 5);

What is the expected output? What do you see instead?

Edit USBAPI.h.

Find the class: Serial_

Add this line:

  using Print::write; // pull in write(str) and write(buf, size) from Print

http://arduino.cc/forum/index.php/topic,109987.0.html

Original issue reported on code.google.com by dmel...@gmail.com on 14 Jun 2012 at 2:06

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/f833374312bcab83d4531769a253122a9c4d70
08

Original comment by dmel...@gmail.com on 14 Jun 2012 at 2:59