RS232 control for TVOne products
Revision 4:3faabbbf0ecf, committed 2012-10-06
- Comitter:
- tobyspark
- Date:
- Sat Oct 06 12:37:05 2012 +0000
- Parent:
- 3:03e7e7b7a870
- Child:
- 5:4b0bf9a724a4
- Commit message:
- Debugging add - have seen freezes when actually mixing with tv-one, rather than it being connected and being left on. Could this be some error with information coming back from tv-one? Added a debug line to help.
Changed in this revision
spk_tvone_mbed.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/spk_tvone_mbed.cpp Sun Sep 30 13:39:58 2012 +0000 +++ b/spk_tvone_mbed.cpp Sat Oct 06 12:37:05 2012 +0000 @@ -50,7 +50,10 @@ // TASK: discard anything waiting to be read while (serial->readable()) { - serial->getc(); + if (debug) + debug->printf("Warning: data waiting on TV One serial bus: %u\n", serial->getc()); + else + serial->getc(); } // TASK: Create the bytes of command