Skip to content

Commit cf6cd3a

Browse files
committed
Don't use println() in the Serial.print() usage examples
1 parent 9421887 commit cf6cd3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Language/Functions/Communication/Serial/print.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ An optional second parameter specifies the base (format) to use; permitted value
2727
* `Serial.print(78, OCT) gives "116"` +
2828
* `Serial.print(78, DEC) gives "78"` +
2929
* `Serial.print(78, HEX) gives "4E"` +
30-
* `Serial.println(1.23456, 0) gives "1"` +
31-
* `Serial.println(1.23456, 2) gives "1.23"` +
32-
* `Serial.println(1.23456, 4) gives "1.2346"`
30+
* `Serial.print(1.23456, 0) gives "1"` +
31+
* `Serial.print(1.23456, 2) gives "1.23"` +
32+
* `Serial.print(1.23456, 4) gives "1.2346"`
3333

3434
You can pass flash-memory based strings to Serial.print() by wrapping them with link:../../../../variables/utilities/progmem[F()]. For example:
3535

0 commit comments

Comments
 (0)