Skip to content

Commit e8f9ac8

Browse files
Merge pull request #1466 from ARMmbed/docs-fixes
further fix for missing CONSOLE_TX/RX in porting guide
2 parents 790a118 + 1cf4866 commit e8f9ac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/platform/FileHandle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ namespace mbed
8282

8383
Then any program using `printf` on that target sends its output over the SWO, rather than serial.
8484

85-
Because targets can redirect the console in this way, portable applications should not use constructs such as `Serial(USBTX, USBRX)`, assuming that this will access the console. Instead they should use `stdin`/`stdout`/`stderr` or `STDIN_FILENO`/`STDOUT_FILENO`/`STDERR_FILENO`.
85+
Because targets can redirect the console in this way, portable applications should not use constructs such as `Serial(CONSOLE_TX, CONSOLE_RX)`, assuming that this will access the console. Instead they should use `stdin`/`stdout`/`stderr` or `STDIN_FILENO`/`STDOUT_FILENO`/`STDERR_FILENO`.
8686

8787
```
8888
// Don't do:
89-
Serial serial(USBTX, USBRX);
89+
Serial serial(CONSOLE_TX, CONSOLE_RX);
9090
serial.printf("Hello!\r\n");
9191
9292
// Do do:

0 commit comments

Comments
 (0)