Martin Kojtal
/
Serial_ex_3
fork
Fork of RawSerial_ex_2 by
Revision 2:4ab47f33a1ae, committed 2018-01-10
- Comitter:
- Kojto
- Date:
- Wed Jan 10 14:24:47 2018 +0000
- Parent:
- 1:300362127299
- Commit message:
- putc instead of printf (not allowed in ISR)
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 300362127299 -r 4ab47f33a1ae main.cpp --- a/main.cpp Fri Jun 23 15:49:35 2017 -0500 +++ b/main.cpp Wed Jan 10 14:24:47 2018 +0000 @@ -7,7 +7,7 @@ void callback_ex() { // Note: you need to actually read from the serial to clear the RX interrupt - printf("%c\n", pc.getc()); + pc.putc(pc.getc()); led2 = !led2; }