Pages: [1]   Go Down
Author Topic: Serial.print and Serial.println are different ...  (Read 658 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Serial - print handles byte and unsigned int, not so does println.
I think a function like the following is missing. Isn't it?

void HardwareSerial::println(unsigned int n)
{
  print(n);
  println();
}

But there is an declaration for uint8_t.

By the way ... How can I recompile or use changes in the libraries in Ardunio 0010?

thanks for answering.

regards
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The function:

void HardwareSerial::println(unsigned int n)

will be in Arduino 0011.

To change things in hardware/cores/arduino, just edit the files.  Next time you compile or upload your program, it should use the new source.  To change things in hardware/libraries, you either need to delete the .o files or switch boards (in the Tools > Boards menu).
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great, thanks
Logged

Pages: [1]   Go Up
Jump to: