fork

Fork of RawSerial_ex_2 by mbed_example

Files at this revision

API Documentation at this revision

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;
 }